projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
epic-ts
[kivitendo-erp.git]
/
scripts
/
task_server.pl
diff --git
a/scripts/task_server.pl
b/scripts/task_server.pl
index
299be69
..
f6c8f59
100755
(executable)
--- a/
scripts/task_server.pl
+++ b/
scripts/task_server.pl
@@
-26,7
+26,6
@@
use SL::DBUpgrade2;
use SL::DB::AuthClient;
use SL::DB::BackgroundJob;
use SL::System::Process;
use SL::DB::AuthClient;
use SL::DB::BackgroundJob;
use SL::System::Process;
-use SL::BackgroundJob::ALL;
use SL::Form;
use SL::Helper::DateTime;
use SL::InstanceConfiguration;
use SL::Form;
use SL::Helper::DateTime;
use SL::InstanceConfiguration;
@@
-263,7
+262,7
@@
sub run_single_job_for_all_clients {
if (!$ok) {
my $error = $EVAL_ERROR;
if (!$ok) {
my $error = $EVAL_ERROR;
-
debug(
"Exception during execution: ${error}");
+
$::lxdebug->message(LXDebug::WARN(),
"Exception during execution: ${error}");
notify_on_failure(exception => $error);
}
notify_on_failure(exception => $error);
}
@@
-309,7
+308,7
@@
sub run_once_for_all_clients {
if (!$ok) {
my $error = $EVAL_ERROR;
if (!$ok) {
my $error = $EVAL_ERROR;
-
debug(
"Exception during execution: ${error}");
+
$::lxdebug->message(LXDebug::WARN(),
"Exception during execution: ${error}");
notify_on_failure(exception => $error);
}
notify_on_failure(exception => $error);
}
@@
-322,6
+321,7
@@
sub gd_run {
run_single_job_for_all_clients();
return;
}
run_single_job_for_all_clients();
return;
}
+ $::lxdebug->message(LXDebug::INFO(), "The task server for node " . SL::System::TaskServer::node_id() . " is up and running.");
while (1) {
$SIG{'ALRM'} = 'IGNORE';
while (1) {
$SIG{'ALRM'} = 'IGNORE';