diff --git a/src/script/hydra_scheduler.pl b/src/script/hydra_scheduler.pl index 368ecc55..78ebfbf7 100755 --- a/src/script/hydra_scheduler.pl +++ b/src/script/hydra_scheduler.pl @@ -467,7 +467,10 @@ if (scalar @ARGV == 2) { while (1) { - checkJobs; + eval { + checkJobs; + }; + if ($@) { print "$@"; } print "sleeping...\n"; sleep 30; }