Skip to content

Commit 60e183e

Browse files
committed
remove unneeded interrupt clearing if there are no repeatable events
1 parent 7a80e6c commit 60e183e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Illuminate/Console/Scheduling/ScheduleRunCommand.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,14 @@ public function handle(Schedule $schedule, Dispatcher $dispatcher, Cache $cache,
112112
$this->handler = $handler;
113113
$this->phpBinary = Application::phpBinary();
114114

115-
$this->clearInterruptSignal();
116-
117115
$this->newLine();
118116

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

119+
if ($events->contains->isRepeatable()) {
120+
$this->clearInterruptSignal();
121+
}
122+
121123
foreach ($events as $event) {
122124
if (! $event->filtersPass($this->laravel)) {
123125
$this->dispatcher->dispatch(new ScheduledTaskSkipped($event));

0 commit comments

Comments
 (0)