$this->eventManager->
notify('Shopware_CronJob_Finished',
[ 'subject' =>
$this,
'job' =>
$job,
]);
return $jobArgs;
} catch (\Throwable
$e) { $job->
setData(['error' =>
$e->
getMessage()]);
if ($job->
getDisableOnError()) { $this->
disableJob($job);
} else { $this->
endJob($job);
} $this->eventManager->
notify('Shopware_CronJob_Error_' .
$action,
[ 'subject' =>
$this,
'job' =>
$job,
]);
$this->eventManager->
notify('Shopware_CronJob_Error',
[ 'subject' =>
$this,