crunzphp / crunz

A PHP-based job scheduler
MIT License
176 stars 16 forks source link

Allow adding of an error callback to a Task #49

Open tip2tail opened 1 year ago

tip2tail commented 1 year ago

Currently there is no wat to add an additional "Error" callback in the same way as we can with ->before() and ->after().

Can the "addErrorCallback()" method be changed from private to public.

dsuurlant commented 1 year ago

+1, we ran into the same problem that the onError handler works for schedule:run -f but not for schedule:run -f -t1.