mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 19:43:16 +00:00
fix #767 add active task
This commit is contained in:
@@ -126,7 +126,10 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
'state' => $task->getState(),
|
'state' => $task->getState(),
|
||||||
'pid' => $task->getPID(),
|
'pid' => $task->getPID(),
|
||||||
'title' => $task->getTitle(),
|
'title' => $task->getTitle(),
|
||||||
'last_exec_time' => $task->getLastExecTime() ? $task->getLastExecTime()->format(DATE_ATOM) : null
|
'last_exec_time' => $task->getLastExecTime() ? $task->getLastExecTime()->format(DATE_ATOM) : null,
|
||||||
|
'auto_start' => ! ! $task->isActive(),
|
||||||
|
'runner' => $task->getRunner(),
|
||||||
|
'crash_counter' => $task->getCrashCounter()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user