From 01fbbc4a21320cb479f71ffa33c422240666a7b8 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Wed, 30 Sep 2015 09:10:27 -0400 Subject: [PATCH] 7263: crunch-job checks for refreshes every two seconds. This avoids the possibility that a constant stream of data from tasks can prevent the job from being canceled. Refs #7263. --- sdk/cli/bin/crunch-job | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/cli/bin/crunch-job b/sdk/cli/bin/crunch-job index 423f4cc043..5539012c49 100755 --- a/sdk/cli/bin/crunch-job +++ b/sdk/cli/bin/crunch-job @@ -980,7 +980,7 @@ for (my $todo_ptr = 0; $todo_ptr <= $#jobstep_todo; $todo_ptr ++) my $gotsome = readfrompipes () + reapchildren (); - if (!$gotsome) + if (!$gotsome || ($latest_refresh + 2 < scalar time)) { check_refresh_wanted(); check_squeue(); -- 2.30.2