From fe2349863bec2d9f368f4c715cba299d629c35e2 Mon Sep 17 00:00:00 2001
From: Morris Jette <jette@schedmd.com>
Date: Tue, 2 Sep 2014 10:51:16 -0700
Subject: [PATCH] Set array start time

When one task of a job array is started, the remaining job record
copy should have it's start time cleared.
---
 src/slurmctld/job_mgr.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/slurmctld/job_mgr.c b/src/slurmctld/job_mgr.c
index 0e3aa4cf6b3..fc08ac65f9c 100644
--- a/src/slurmctld/job_mgr.c
+++ b/src/slurmctld/job_mgr.c
@@ -13753,6 +13753,7 @@ extern void job_array_post_sched(struct job_record *job_ptr)
 	} else {
 		new_job_ptr = _job_rec_copy(job_ptr);
 		new_job_ptr->job_state = JOB_PENDING;
+		new_job_ptr->start_time = (time_t) 0;
 		/* Do NOT clear db_index here, it is handled when task_id_str
 		 * is created elsewhere */
 	}
-- 
GitLab