laravel-database-schedule icon indicating copy to clipboard operation
laravel-database-schedule copied to clipboard

In case of failure, duplicate emails are sent

Open robersonfaria opened this issue 4 years ago • 2 comments

When selecting to send email on success and failure, when a command fails, duplicate email is sent. I still haven't found a solution to the problem, apparently it's a behavior of the framework.

Case also interests @PedroPMS

robersonfaria avatar Jun 18 '21 01:06 robersonfaria

The email output options doesn't provide a method to send the output only in case of succes.

emailOutputTo -> send the output regardless of the result

emailOutputOnFailureTo -> send output only on failure

I suggested a new method in laravel github the handle this case:

emailOutputOnSuccessTo -> send output only on success

Issue

PedroPMS avatar Jun 18 '21 18:06 PedroPMS

That's right, I was studying some way to create a new method or overwrite another one. But so far I haven't found a way.

Thanks for the open issue.

robersonfaria avatar Jun 18 '21 18:06 robersonfaria