From: Moritz Bunkus Date: Mon, 18 Dec 2017 12:16:37 +0000 (+0100) Subject: Task-Server: nach Task-Ausführung Status & Jobname als Debuginfo ausgeben X-Git-Tag: release-3.5.4~572 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=ce89fe5cfb3505be5567b069cfa2688c259f2420;p=kivitendo-erp.git Task-Server: nach Task-Ausführung Status & Jobname als Debuginfo ausgeben --- diff --git a/scripts/task_server.pl b/scripts/task_server.pl index cfdd8668b..07cc53e89 100755 --- a/scripts/task_server.pl +++ b/scripts/task_server.pl @@ -246,6 +246,10 @@ sub run_once_for_all_clients { my $history = $job->run; + debug(" Executed job " . $job->package_name . + "; result: " . (!$history ? "no return value" : $history->has_failed ? "failed" : "succeeded") . + ($history && $history->has_failed ? "; error: " . $history->error_col : "")); + notify_on_failure(history => $history) if $history && $history->has_failed; }