/**
  * @return bool
  */
 public function execute()
 {
     $node_repository = tx_caretaker_NodeRepository::getInstance();
     $node = $node_repository->id2node($this->node_id);
     if (!$node) {
         return false;
     }
     if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['lockingMode'] != 'disable') {
         $lockObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Locking\\Locker', 'tx_caretaker_update_' . $node->getCaretakerNodeId(), $GLOBALS['TYPO3_CONF_VARS']['SYS']['lockingMode']);
         // no output during scheduler runs
         tx_caretaker_ServiceHelper::unregisterCaretakerNotificationService('CliNotificationService');
         if ($lockObj->acquire()) {
             $node->updateTestResult();
             $lockObj->release();
         } else {
             return false;
         }
     } else {
         $node->updateTestResult();
     }
     // send aggregated notifications
     $notificationServices = tx_caretaker_ServiceHelper::getAllCaretakerNotificationServices();
     /** @var tx_caretaker_AbstractNotificationService $notificationService */
     foreach ($notificationServices as $notificationService) {
         $notificationService->sendNotifications();
     }
     return true;
 }
 public function execute()
 {
     $node_repository = tx_caretaker_NodeRepository::getInstance();
     $node = $node_repository->id2node($this->node_id);
     if (!$node) {
         return false;
     }
     $lockObj = t3lib_div::makeInstance('t3lib_lock', 'tx_caretaker_update_' . $node->getCaretakerNodeId(), $GLOBALS['TYPO3_CONF_VARS']['SYS']['lockingMode']);
     // no output during scheduler runs
     tx_caretaker_ServiceHelper::unregisterCaretakerNotificationService('CliNotificationService');
     if ($lockObj->acquire()) {
         $node->updateTestResult();
         $lockObj->release();
     } else {
         return false;
     }
     // send aggregated notifications
     $notificationServices = tx_caretaker_ServiceHelper::getAllCaretakerNotificationServices();
     foreach ($notificationServices as $notificationService) {
         $notificationService->sendNotifications();
     }
     $success = true;
     return $success;
 }