setAllowParallelRuns(false);
}
/**
* @param array{taskId: int} $argument
* @inheritDoc
*/
protected function run($argument) {
$taskId = $argument['taskId'];
$task = $this->textProcessingManager->getTask($taskId);
try {
$this->textProcessingManager->runTask($task);
$event = new TaskSuccessfulEvent($task);
} catch (\Throwable $e) {
$event = new TaskFailedEvent($task, $e->getMessage());
}
$this->eventDispatcher->dispatchTyped($event);
}
}
/github-actions-384b59e5c3'>dependabot/github_actions/github-actions-384b59e5c3
blob: 3804249dc38bf06616a07db2c1dd85f4645180c7 (
plain)