StudioBonito\SilverStripe\Queue\Tasks\ProcessQueueTask
Synopsis
class ProcessQueueTask
extends BuildTask
{
- // members
- protected string $title = 'Process task queue';
- protected string $description = 'Process the next job on a queue.';
- protected Worker $worker;
- // methods
- public void __construct()
- public void run()
Hierarchy
Extends
- BuildTask
Members
protected
- $description — string
- $title
—
string
Task title used in web interface. - $worker
—
\StudioBonito\SilverStripe\Queue\Worker
The queue worker instance.
Methods
public
- __construct() — Ensure that the QueueManager instance gets injected.
- run() — Implement this method in the task subclass to execute via the TaskRunner