7313: crunch-job reports an error when a task doesn't record state.
authorBrett Smith <brett@curoverse.com>
Tue, 17 Nov 2015 03:42:31 +0000 (22:42 -0500)
committerBrett Smith <brett@curoverse.com>
Tue, 17 Nov 2015 03:42:31 +0000 (22:42 -0500)
Closes #7313.

sdk/cli/bin/crunch-job

index 70ba04fcaba75019b008707be24ffecc8b2c403f..28da66d0ca74296ef8475a5d96c0cb6fb3d41764 100755 (executable)
@@ -1182,6 +1182,9 @@ sub reapchildren
 
   if (!defined $task_success) {
     # task did not indicate one way or the other --> fail
+    Log($jobstepid, sprintf(
+          "ERROR: Task process exited %d, but never updated its task record to indicate success and record its output.",
+          exit_status_s($childstatus)));
     $Jobstep->{'arvados_task'}->{success} = 0;
     $Jobstep->{'arvados_task'}->save;
     $task_success = 0;