-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Labels
bugSomething isn't workingSomething isn't working
Description
When using a frequency in combination with after. Then scheduler garbare resolver does not what I expect it to do.
With below code
Scheduler::init('IncompleteSubmissionMissingMeterSerialMailable')
->mailable(new IncompleteSubmissionMissingMeterSerialMailable($submission->id))
->target($submission)
->daily()
->stopable()
->after(now()->addHour())
->save();
I expect that "The mail is being being sent daily starting in an hour. Untill one of the constraints is being touched.". Techincally this means that completed_at should never be set until the constraint is hit.
In practice this is not working because the completed_at value is always being set by the garbage resolver when using after as a time_frame_origin
This isRepetitive should also be added to the after origin I think
if ($this->isBefore()) {
if ($this->isRepetitive()) {
return true;
}
return now()->lt($this->triggerTarget());
}Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working