|
|
@@ -131,11 +131,13 @@ class CronCommand extends Command
|
|
|
implode(', ', array_map(static function($job) { return $job->name(); }, $jobs))
|
|
|
);
|
|
|
|
|
|
+ $results = [];
|
|
|
+
|
|
|
foreach ($jobs as $job) {
|
|
|
- $this->runJob($job, $preview);
|
|
|
+ $results[] = $this->runJob($job, $preview);
|
|
|
}
|
|
|
|
|
|
- return Command::SUCCESS;
|
|
|
+ return max($results); // If there is one failure result, the whole command is shown as a failure too
|
|
|
}
|
|
|
|
|
|
/**
|