Skip to content

Commit a2f9e4b

Browse files
committed
Set process title when running cron job
1 parent 6f26909 commit a2f9e4b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ protected function _runJob($scheduledTime, $currentTime, $jobConfig, $schedule,
339339
);
340340
}
341341

342+
cli_set_process_title("Magento cron - group=$groupId - job=$jobCode");
342343
$schedule->setExecutedAt(strftime('%Y-%m-%d %H:%M:%S', $this->dateTime->gmtTimestamp()));
343344
$this->retrier->execute(
344345
function () use ($schedule) {

0 commit comments

Comments
 (0)