From 35bf7a16482b304908c5b6bf3cd772647158f593 Mon Sep 17 00:00:00 2001 From: Peter Amstutz Date: Thu, 11 Sep 2014 15:54:50 -0400 Subject: [PATCH] 3187: Update the task start time when the task actually starts. --- sdk/cli/bin/crunch-job | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/cli/bin/crunch-job b/sdk/cli/bin/crunch-job index 55813aba00..114c9101b4 100755 --- a/sdk/cli/bin/crunch-job +++ b/sdk/cli/bin/crunch-job @@ -730,6 +730,9 @@ for (my $todo_ptr = 0; $todo_ptr <= $#jobstep_todo; $todo_ptr ++) delete $Jobstep->{stderr}; delete $Jobstep->{finishtime}; + $Jobstep->{'arvados_task'}->{started_at} = strftime "Y%-%m-%dT%H:%M:%SZ", gmtime($Jobstep->{starttime}); + $Jobstep->{'arvados_task'}->save; + splice @jobstep_todo, $todo_ptr, 1; --$todo_ptr; @@ -980,7 +983,6 @@ sub reapchildren } $Jobstep->{exitcode} = $childstatus; $Jobstep->{finishtime} = time; - $Jobstep->{'arvados_task'}->{started_at} = strftime "Y%-%m-%dT%H:%M:%SZ", gmtime($Jobstep->{starttime}); $Jobstep->{'arvados_task'}->{finished_at} = strftime "Y%-%m-%dT%H:%M:%SZ", gmtime($Jobstep->{finishtime}); $Jobstep->{'arvados_task'}->save; process_stderr ($jobstepid, $task_success); -- 2.30.2