What if a scheduled task fails

Published in Originals on Jan 30, 2022

Sometimes scheduled tasks fail. It’s happening more often than we think.
By adding “emailOutputOnFailure” to your scheduled task you’ll be notified with the output when it fails.
Additionally I like to add “withoutOverlapping” to it, just in case the task takes longer than expected.
I’ve also tweeted about this:



#scheduled-tasks, #laravel