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:
📝#Laravel | What if a scheduled task fails... Did you know you could add "emailOutputOnFailure" to you task, by doing so you'll receive an email with the output when it fails. I also like to add "withoutOverlapping" just in case your task takes longer than expected.#devops pic.twitter.com/SobIhS0lmX
— Bert De Swaef (@BurtDS) January 30, 2022
#scheduled-tasks, #laravel