Permalink
Browse files

Daemon should set status of tasks based on result

  • Loading branch information...
1 parent 99061dd commit 673b2d4226fe4c166fc56fa9eab50d1b8bc18978 Wouter committed Mar 13, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 classes/controller/daemon.php
@@ -263,6 +263,8 @@ protected function daemon()
{
$success = $task->execute($this->_config['max_tries']);
+ $task->status = $success ? 'completed' : 'failed';
+
if ( ! $success)
{
// log error

0 comments on commit 673b2d4

Please sign in to comment.