Revision 6c7da401
Von Moritz Bunkus vor fast 14 Jahren hinzugefügt
SL/BackgroundJob/CleanBackgroundJobHistory.pm | ||
---|---|---|
27 | 27 |
} |
28 | 28 |
|
29 | 29 |
1; |
30 |
|
|
31 |
__END__ |
|
32 |
|
|
33 |
=encoding utf8 |
|
34 |
|
|
35 |
=head1 NAME |
|
36 |
|
|
37 |
SL::BackgroundJob::CleanBackgroundJobHistory - Background job for |
|
38 |
cleaning the history table of all executed jobs |
|
39 |
|
|
40 |
=head1 SYNOPSIS |
|
41 |
|
|
42 |
This background job deletes old entries from the table |
|
43 |
C<background_job_histories>. Each time a job is run an entry is |
|
44 |
created in that table. |
|
45 |
|
|
46 |
The associated C<SL::DB::BackgroundJob> instance's C<data> may be a |
|
47 |
hash containing the retention periods for successful and failed |
|
48 |
jobs. Both are the number of days a history entry is to be kept. C<< |
|
49 |
$data->{retention_success} >> defaults to 14. C<< |
|
50 |
$data->{retention_failure} >> defaults to 90. |
|
51 |
|
|
52 |
The job is supposed to run once a day. |
|
53 |
|
|
54 |
=head1 BUGS |
|
55 |
|
|
56 |
Nothing here yet. |
|
57 |
|
|
58 |
=head1 AUTHOR |
|
59 |
|
|
60 |
Moritz Bunkus E<lt>m.bunkus@linet-services.deE<gt> |
|
61 |
|
|
62 |
=cut |
Auch abrufbar als: Unified diff
Dokumentation
Conflicts: