We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcc9220 commit 12befdaCopy full SHA for 12befda
src/Illuminate/Console/Scheduling/ScheduleRunCommand.php
@@ -2,7 +2,6 @@
2
3
namespace Illuminate\Console\Scheduling;
4
5
-use Exception;
6
use Illuminate\Console\Application;
7
use Illuminate\Console\Command;
8
use Illuminate\Console\Events\ScheduledTaskFailed;
@@ -197,10 +196,6 @@ protected function runEvent($event)
197
196
round(microtime(true) - $start, 2)
198
));
199
200
- if ($event->exitCode !== 0) {
201
- throw new Exception("Scheduled command [{$event->command}] failed with exit code [{$event->exitCode}].");
202
- }
203
-
204
$this->eventsRan = true;
205
} catch (Throwable $e) {
206
$this->dispatcher->dispatch(new ScheduledTaskFailed($event, $e));
0 commit comments