Revision e5f571cf
Von Moritz Bunkus vor etwa 12 Jahren hinzugefügt
SL/DB/BackgroundJob.pm | ||
---|---|---|
90 | 90 |
} |
91 | 91 |
|
92 | 92 |
eval { |
93 |
DateTime::Event::Cron->new_from_cron($self->cron_spec)->next(DateTime->now_local); |
|
93 |
DateTime::Event::Cron->new_from_cron($self->cron_spec || '* * * * *')->next(DateTime->now_local);
|
|
94 | 94 |
1; |
95 | 95 |
} or push @errors, $::locale->text('The execution schedule is invalid.'); |
96 | 96 |
|
Auch abrufbar als: Unified diff
Hintergrundjob-Validierung: 'keine Spec' als '* * * * *' behandeln