Revision 8e115155
Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt
SL/DB/BackgroundJob.pm | ||
---|---|---|
45 | 45 |
$history = SL::DB::BackgroundJobHistory |
46 | 46 |
->new(package_name => $self->package_name, |
47 | 47 |
run_at => $run_at, |
48 |
status => 'success',
|
|
48 |
status => SL::DB::BackgroundJobHistory::SUCCESS(),
|
|
49 | 49 |
result => $result, |
50 | 50 |
data => $self->data); |
51 | 51 |
$history->save; |
... | ... | |
58 | 58 |
$history = SL::DB::BackgroundJobHistory |
59 | 59 |
->new(package_name => $self->package_name, |
60 | 60 |
run_at => $run_at, |
61 |
status => 'failure',
|
|
61 |
status => SL::DB::BackgroundJobHistory::FAILURE(),
|
|
62 | 62 |
error_col => $error, |
63 | 63 |
data => $self->data); |
64 | 64 |
$history->save; |
Auch abrufbar als: Unified diff
RDBO BackgroundJob(History): Refactoring von Status-Strings