QueueManager
class QueueManager
Methods
__construct(string $storagePath)
QueueManager constructor.
array
getActiveQueues()
Get the active queues with their pending items
mixed
getQueueItem($workerClass, $reference)
Get the payload for a queue item
queueUp($workerClass, $data)
Queue up a command for the specified worker.
removeQueueItem($workerClass, $reference)
Remove an item from a queue
singleton($workerClass, string $reference, mixed $data)
Set a singleton queue item
Details
at line line 28
__construct(string $storagePath)
QueueManager constructor.
at line line 45
array
getActiveQueues()
Get the active queues with their pending items
at line line 75
mixed
getQueueItem($workerClass, $reference)
Get the payload for a queue item
at line line 87
queueUp($workerClass, $data)
Queue up a command for the specified worker.
at line line 105
removeQueueItem($workerClass, $reference)
Remove an item from a queue
at line line 123
singleton($workerClass, string $reference, mixed $data)
Set a singleton queue item
Singletons only exist once. For example, it makes no sense to schedule a deployment many times. A single deployment catches up the repo and renders subsequent contemporaneous deployments unnecessary.