endJob example

$jobArgs = $this->eventManager->notifyUntil(
                $job->getAction(),
                $jobArgs
            );

            if ($jobArgs !== null) {
                $job->setData($jobArgs->getReturn());
                $this->adapter->updateJob($job);
            }

            $this->endJob($job);
            $this->eventManager->notify('Shopware_CronJob_Finished_' . $job->getAction()[
                'subject' => $this,
                'job' => $job,
            ]);

            $this->eventManager->notify('Shopware_CronJob_Finished', [
                'subject' => $this,
                'job' => $job,
            ]);

            return $jobArgs;
        }
Home | Imprint | This part of the site doesn't use cookies.