Revision fafc4b3f
Von Moritz Bunkus vor fast 14 Jahren hinzugefügt
SL/DB/BackgroundJob.pm | ||
---|---|---|
42 | 42 |
}; |
43 | 43 |
|
44 | 44 |
if (!$ok) { |
45 |
my $error = $EVAL_ERROR; |
|
45 | 46 |
$history = SL::DB::BackgroundJobHistory |
46 | 47 |
->new(package_name => $self->package_name, |
47 | 48 |
run_at => $run_at, |
48 | 49 |
status => 'failure', |
49 |
error_col => $EVAL_ERROR,
|
|
50 |
error_col => $error,
|
|
50 | 51 |
data => $self->data); |
51 | 52 |
$history->save; |
53 |
|
|
54 |
$::lxdebug->message(LXDebug->WARN(), "BackgroundJob ID " . $self->id . " execution error (first three lines): " . join("\n", (split(m/\n/, $error))[0..2])); |
|
52 | 55 |
} |
53 | 56 |
|
54 | 57 |
$self->assign_attributes(last_run_at => $run_at)->update_next_run_at; |
Auch abrufbar als: Unified diff
Ausführungsfehler bei Jobs auch im Debug-Log als WARNING ausgeben