projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
task_server: pro Job mit Sprache vom konfiguriert initialisieren
[kivitendo-erp.git]
/
SL
/
BackgroundJob
/
Test.pm
diff --git
a/SL/BackgroundJob/Test.pm
b/SL/BackgroundJob/Test.pm
index
f79a1b5
..
c8c76db
100644
(file)
--- a/
SL/BackgroundJob/Test.pm
+++ b/
SL/BackgroundJob/Test.pm
@@
-5,10
+5,14
@@
use strict;
use parent qw(SL::BackgroundJob::Base);
sub run {
use parent qw(SL::BackgroundJob::Base);
sub run {
- my
$self = shift
;
- my $d
b_obj = shift
;
+ my
($self, $db_obj) = @_
;
+ my $d
ata = $db_obj->data_as_hash
;
$::lxdebug->message(0, "Test job is being executed.");
$::lxdebug->message(0, "Test job is being executed.");
+
+ die "Oh cruel world: " . $data->{exception} if $data->{exception};
+
+ return exists $data->{result} ? $data->{result} : 1;
}
1;
}
1;