mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
new task workflow02
fix bugs
This commit is contained in:
@@ -84,6 +84,7 @@ abstract class task_appboxAbstract extends task_abstract
|
||||
switch ($process_ret) {
|
||||
case self::STATE_MAXMEGSREACHED:
|
||||
case self::STATE_MAXRECSDONE:
|
||||
case self::STATE_OK:
|
||||
if ($this->getRunner() == self::RUNNER_SCHEDULER) {
|
||||
$this->setState(self::STATE_TORESTART);
|
||||
$this->running = FALSE;
|
||||
@@ -99,9 +100,6 @@ abstract class task_appboxAbstract extends task_abstract
|
||||
$this->setState(self::STATE_TODELETE);
|
||||
$this->running = FALSE;
|
||||
break;
|
||||
|
||||
case self::STATE_OK:
|
||||
break;
|
||||
}
|
||||
} // if(row)
|
||||
|
||||
@@ -118,7 +116,7 @@ abstract class task_appboxAbstract extends task_abstract
|
||||
*/
|
||||
protected function process(appbox $appbox)
|
||||
{
|
||||
$ret = self::STATE_OK;
|
||||
$ret = self::STATE_OK;
|
||||
|
||||
try {
|
||||
// get the records to process
|
||||
@@ -126,7 +124,6 @@ abstract class task_appboxAbstract extends task_abstract
|
||||
|
||||
// process the records
|
||||
$ret = $this->processLoop($appbox, $rs);
|
||||
|
||||
} catch (Exception $e) {
|
||||
$this->log('Error : ' . $e->getMessage());
|
||||
}
|
||||
|
Reference in New Issue
Block a user