refix the hanging singleton workflow problem with spectre. Fixes bug #10189, again.

This commit is contained in:
Colin Kuskie 2010-10-05 11:07:53 -07:00
parent 97ffe5187e
commit adbec05e97
2 changed files with 4 additions and 0 deletions

View file

@ -8,6 +8,7 @@
- fixed #11857: make page printable?
- fixed #11891: Shop credit not displayed in payment method screen
- fixed #11871: Metadata display and criteria builder problems
- fixed #10189: pbworkflow000000000007 Hanging
7.10.1
- fixed #11851: Story Topic: top story variables should be available all the time

View file

@ -308,6 +308,9 @@ sub www_runCronJob {
# Run the instance
my $error = $instance->start( 1 );
if ($error) {
##Unable to communicate with spectre. Delete this instance to it does not get stuck.
$session->log->error("Unable to communicate with spectre: $error about taskId: $taskId. Deleting instanceId: ". $instance->getId);
$instance->delete();
return "error";
}
$task->delete( 1 ) if ( $task->get("runOnce") );