__construct()
__construct()
Manager of long tasks.
start(\pm_LongTask_Task $task, \pm_Domain|null $domain = null) : \pm_LongTask_Task
Start task execution
\pm_LongTask_Task | $task | Task to start |
\pm_Domain|null | $domain | Domain context or null for no context |
Launched task
getTasks(array<mixed,string> $ids, array<mixed,\pm_Domain>|null $domains = null) : array<mixed,\pm_LongTask_Task>
Get task queue filtered by ID and context
array<mixed,string> | $ids | Task IDs |
array<mixed,\pm_Domain>|null | $domains | Domain contexts or null for task without any context |
Task queue
cancel(\pm_LongTask_Task $task)
Cancel task and delete it
\pm_LongTask_Task | $task | Task to be canceled |