diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 37b341d2b..fe34d438e 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -7,6 +7,8 @@ - added #10944: Wiki Keyword Page - added #10946: Wiki - Hierarchical Keyword Report - added #10945: Wiki - Top-level keyword list + - fixed #11444: Strange spectre problem + - fixed #10189: pbworkflow000000000007 Hanging 7.9.2 - added: Workflow to extend recurring Calendar events 2 years from the diff --git a/lib/WebGUI/Operation/Cron.pm b/lib/WebGUI/Operation/Cron.pm index a0da869c2..d32c9fe79 100644 --- a/lib/WebGUI/Operation/Cron.pm +++ b/lib/WebGUI/Operation/Cron.pm @@ -306,9 +306,13 @@ sub www_runCronJob { } # Run the instance - $instance->start( 1 ); - $task->delete( 1 ) if ( $task->get("runOnce") ); - return "done"; + my $error = $instance->start( 1 ); + if ($error) { + $task->delete(1); + return "error"; + } + $task->delete( 1 ) if ( $task->get("runOnce") ); + return "done"; } $session->errorHandler->warn("No task ID passed to cron job runner."); return "error";