From 62bc8c1d199e374aa7e122a62a200f8f1c837f62 Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Mon, 2 Jul 2012 19:44:37 +0200 Subject: [PATCH] fix #767 add active task --- lib/classes/API/V1/adapter.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/classes/API/V1/adapter.class.php b/lib/classes/API/V1/adapter.class.php index 24e93a30ef..39acca1757 100644 --- a/lib/classes/API/V1/adapter.class.php +++ b/lib/classes/API/V1/adapter.class.php @@ -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() ); }