projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
t/wh/inventory.t: Nach Test richtig aufräumen
[kivitendo-erp.git]
/
SL
/
BackgroundJob
/
Test.pm
diff --git
a/SL/BackgroundJob/Test.pm
b/SL/BackgroundJob/Test.pm
index
c8c76db
..
a70b7a3
100644
(file)
--- a/
SL/BackgroundJob/Test.pm
+++ b/
SL/BackgroundJob/Test.pm
@@
-4,11
+4,13
@@
use strict;
use parent qw(SL::BackgroundJob::Base);
use parent qw(SL::BackgroundJob::Base);
+use SL::System::TaskServer;
+
sub run {
my ($self, $db_obj) = @_;
my $data = $db_obj->data_as_hash;
sub run {
my ($self, $db_obj) = @_;
my $data = $db_obj->data_as_hash;
- $::lxdebug->message(0, "Test job
is being executed
.");
+ $::lxdebug->message(0, "Test job
ID " . $db_obj->id . " is being executed on node " . SL::System::TaskServer::node_id() . "
.");
die "Oh cruel world: " . $data->{exception} if $data->{exception};
die "Oh cruel world: " . $data->{exception} if $data->{exception};