service = $service; $this->taskMutexService = $taskMutexService; } /** * @return void */ public function execute() { if ($this->taskMutexService->isTaskInstanceRunning('hubspot_process')) { return; } $this->taskMutexService->setMutex('hubspot_process'); $this->service->execute(static::CALL_TYPE); } /** * @return void */ public function cleanup() { $this->taskMutexService->setMutex('hubspot_process', false); $this->service->cleanup(); } /** * @param ArrayObject $args * * @return void */ public function beforeScheduleAction(ArrayObject $args) { // TODO: Implement beforeScheduleAction() method. } /** * @param ArrayObject $args * * @return void */ public function afterScheduleAction(ArrayObject $args) { // TODO: Implement afterScheduleAction() method. } }