fix #767 add active task

This commit is contained in:
Nicolas Le Goff
2012-07-02 19:44:37 +02:00
parent 06eecb913f
commit 62bc8c1d19

View File

@@ -126,7 +126,10 @@ class API_V1_adapter extends API_V1_Abstract
'state' => $task->getState(),
'pid' => $task->getPID(),
'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()
);
}