...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/agent/duplicate/background/base.php
- Класс: Bitrix\Crm\Agent\Duplicate\Background\Base
- Вызов: Base::tryStop
protected function tryStop(): Result { $result = new Result(); $progressData = $this->getProgressData(); if ( !( isset($progressData['STATUS']) && in_array( $progressData['STATUS'], [ static::STATUS_PENDING_START, static::STATUS_RUNNING, static::STATUS_PENDING_STOP, static::STATUS_PENDING_CONTINUE, ], true ) ) ) { $result->addError($this->getErrorByCode(static::ERR_NOT_RUNNING)); return $result; } $progressData['NEXT_STATUS'] = static::STATUS_PENDING_STOP; $progressData['TIMESTAMP'] = time(); $this->setProgressData($progressData); return $result; }