fixed: Scheduled workflows based on day of week run on wrong day
This commit is contained in:
parent
f4e43c9b31
commit
b02b4823ff
3 changed files with 10 additions and 1 deletions
|
|
@ -161,7 +161,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-1, $job->{dayOfWeek}, [0..6]) ) {
|
||||
&& $self->checkSegment($now->dow % 7, $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