Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 12befda

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

File tree

Expand file treeCollapse file tree

1 file changed

+0
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-5
lines changed

‎src/Illuminate/Console/Scheduling/ScheduleRunCommand.php

Copy file name to clipboardExpand all lines: src/Illuminate/Console/Scheduling/ScheduleRunCommand.php
-5Lines changed: 0 additions & 5 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.