You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Force-running a schedule (schedule:run -f -t1) ignores the Schedule's error handler.
To reproduce
<?php$sch = newCrunz\Schedule();
$sch->onError(function () {}); // will *not* be called$sch->run(function () {};
return$sch;
Possible Solution ScheduleRunCommand:115 seems to be the culprit. Before that section, $schedules[0] has the error handler closure. Afterwards, it's gone.
The text was updated successfully, but these errors were encountered:
Crunz version: 3.0.1
PHP version: 7.4.24
Operating system type and version: Ubuntu
Description
Force-running a schedule (
schedule:run -f -t1
) ignores theSchedule
's error handler.To reproduce
Possible Solution
ScheduleRunCommand:115
seems to be the culprit. Before that section,$schedules[0]
has the error handler closure. Afterwards, it's gone.The text was updated successfully, but these errors were encountered: