Skip to content

[5.8] Track the exit code of scheduled event commands#28140

Merged
taylorotwell merged 2 commits intolaravel:5.8from
kbond:schedule-exit-code
Apr 8, 2019
Merged

[5.8] Track the exit code of scheduled event commands#28140
taylorotwell merged 2 commits intolaravel:5.8from
kbond:schedule-exit-code

Conversation

@kbond
Copy link
Copy Markdown
Contributor

@kbond kbond commented Apr 8, 2019

Currently, there is no way to tell if a scheduled command failed without manually viewing the output.

This change will allow users to create the following Illuminate\Console\Scheduling\Event macros:

$event->onFailureEmailOutputTo()

$event->pingOnSuccess()

Perhaps these type of methods could be added to core later...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants