Skip to content

Commit

Permalink
only clear interrupt signal if we have repeatable commands
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 10, 2025
1 parent eacb494 commit d1fc4b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Illuminate/Console/Scheduling/ScheduleRunCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,14 @@ public function handle(Schedule $schedule, Dispatcher $dispatcher, Cache $cache,
$this->handler = $handler;
$this->phpBinary = Application::phpBinary();

$this->clearInterruptSignal();

$this->newLine();

$events = $this->schedule->dueEvents($this->laravel);

if ($events->contains->isRepeatable()) {
$this->clearInterruptSignal();
}

foreach ($events as $event) {
if (! $event->filtersPass($this->laravel)) {
$this->dispatcher->dispatch(new ScheduledTaskSkipped($event));
Expand Down

0 comments on commit d1fc4b6

Please sign in to comment.