Метод hasActiveAgentWithNamePrefix
Сигнатура метода
private function hasActiveAgentWithNamePrefix(string $namePrefix): bool
Возвращает:
bool
Описание
The name of an agent starts with the handler call, so the pattern is anchored left and hits ix_agent_name. CAgent::GetList escapes the value itself (ForSqlLike), so escaping it here would be applied twice; what survives escaping is the wildcard meaning of an underscore inside a name, hence the recheck of the fetched row. A found agent counts whatever its NEXT_EXEC says: an overdue schedule means a lagging ExecuteAgents (it picks exactly the rows with NEXT_EXEC <= now), not a missing wake-up mechanism. Only an inactive agent is no mechanism - the scheduler never fires it.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$namePrefix
|
string
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulesbizproc/lib/Internal/Service/WorkflowState/StuckPauseWorkflowDetector.php