Skip to content

Commit dbd1680

Browse files
authored
ENGCOM-3615: Log jobCode when writing to log with no callback for easier debug #19541
2 parents 6e0b654 + 179a4d3 commit dbd1680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Cron/Observer/ProcessCronQueueObserver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ protected function _runJob($scheduledTime, $currentTime, $jobConfig, $schedule,
298298

299299
if (!isset($jobConfig['instance'], $jobConfig['method'])) {
300300
$schedule->setStatus(Schedule::STATUS_ERROR);
301-
throw new \Exception('No callbacks found');
301+
throw new \Exception(sprintf('No callbacks found for cron job %s', $jobCode));
302302
}
303303
$model = $this->_objectManager->create($jobConfig['instance']);
304304
$callback = [$model, $jobConfig['method']];

0 commit comments

Comments
 (0)