projects
/
kivitendo-erp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c53e12
)
Test-BackgroundJob: Möglichkeiten, das Ergebnis zu steuern
author
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 3 Jun 2014 15:10:25 +0000
(17:10 +0200)
committer
Moritz Bunkus
<m.bunkus@linet-services.de>
Tue, 3 Jun 2014 15:10:25 +0000
(17:10 +0200)
SL/BackgroundJob/Test.pm
patch
|
blob
|
history
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 {
- 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.");
+
+ die "Oh cruel world: " . $data->{exception} if $data->{exception};
+
+ return exists $data->{result} ? $data->{result} : 1;
}
1;