spectre skips sundays due to an off by 1 diff between cron format and DateTime->dow
This commit is contained in:
parent
456ec9dd0b
commit
98e5d9ea56
2 changed files with 2 additions and 1 deletions
|
|
@ -40,6 +40,7 @@
|
|||
- Fully remove i18n precaching to free up memory (thanks to Matthew Wilson,
|
||||
Veradox)
|
||||
- Wiki page revisions were not in order (perlDreamer Consulting, LLC)
|
||||
- Spectre misses Sundays (thanks to Todor Kouyoumdjiev, ECoCoMS Ltd.)
|
||||
|
||||
7.3.11
|
||||
- Added an option for enabling coverage tests to testCodebase.pl.
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ sub checkSchedule {
|
|||
&& $self->checkSegment($now->hour, $job->{hourOfDay}, [0..23])
|
||||
&& $self->checkSegment($now->day, $job->{dayOfMonth}, [1..31])
|
||||
&& $self->checkSegment($now->month, $job->{monthOfYear}, [1..12])
|
||||
&& $self->checkSegment($now->dow, $job->{dayOfWeek}, [0..6]) ) {
|
||||
&& $self->checkSegment($now->dow-1, $job->{dayOfWeek}, [0..6]) ) {
|
||||
$self->debug("It's time to run ".$jobId.". Creating workflow instance.");
|
||||
$kernel->yield("runJob",$jobId);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue