Skip to content

Commit 12befda

Browse files
authored
Revert "12.x scheduled task failed not dispatched on scheduled task failing (…" (#55612)
This reverts commit 1deaa36.
1 parent bcc9220 commit 12befda

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/Illuminate/Console/Scheduling/ScheduleRunCommand.php

-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Illuminate\Console\Scheduling;
44

5-
use Exception;
65
use Illuminate\Console\Application;
76
use Illuminate\Console\Command;
87
use Illuminate\Console\Events\ScheduledTaskFailed;
@@ -197,10 +196,6 @@ protected function runEvent($event)
197196
round(microtime(true) - $start, 2)
198197
));
199198

200-
if ($event->exitCode !== 0) {
201-
throw new Exception("Scheduled command [{$event->command}] failed with exit code [{$event->exitCode}].");
202-
}
203-
204199
$this->eventsRan = true;
205200
} catch (Throwable $e) {
206201
$this->dispatcher->dispatch(new ScheduledTaskFailed($event, $e));

0 commit comments

Comments
 (0)