fix error message scraping regexp
authorTom Clegg <tom@clinicalfuture.com>
Fri, 15 Nov 2013 16:13:41 +0000 (08:13 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Fri, 15 Nov 2013 16:14:12 +0000 (08:14 -0800)
sdk/cli/bin/crunch-job

index e51268254528dec2d7b18128ec2dcfaee6186ca0..20b65af998297037e14ff45f5943921d6d865fc5 100755 (executable)
@@ -966,7 +966,7 @@ sub preprocess_stderr
     my $line = $1;
     substr $jobstep[$job]->{stderr}, 0, 1+length($line), "";
     Log ($job, "stderr $line");
-    if ($line =~ /srun: error: (SLURM job $ENV{SLURM_JOB_ID} has expired|Unable to confirm allocation for job/) {
+    if ($line =~ /srun: error: (SLURM job $ENV{SLURM_JOB_ID} has expired|Unable to confirm allocation for job $ENV{SLURM_JOB_ID})/) {
       # whoa.
       $main::please_freeze = 1;
     }