class DoormanRunner extends BaseRunner implements TaskRunnerEngine (View source)

Runs all jobs through the doorman engine

Properties

protected string $defaultRules

Methods

public
getService()

Returns an instance of the QueuedJobService.

protected
writeLogLine(string $line, null|string $prefix = null)

Write in a format expected by the output medium (CLI/HTML).

protected
logDescriptorStatus(bool|null|QueuedJobDescriptor $descriptor, string $queue)

Logs the status of the queued job descriptor.

public
listJobs()

Logs the number of current jobs per queue

public
setDefaultRules(array $rules)

Assign default rules for this task

public
array
getDefaultRules()

No description

public
runQueue(string $queue)

Run tasks on the given queue

protected
getNextJobDescriptorWithoutMutex(string $queue)

No description

Details

QueuedJobService getService()

Returns an instance of the QueuedJobService.

Return Value

QueuedJobService

protected writeLogLine(string $line, null|string $prefix = null)

Write in a format expected by the output medium (CLI/HTML).

Parameters

string $line

Line to be written out, without the newline character.

null|string $prefix

protected logDescriptorStatus(bool|null|QueuedJobDescriptor $descriptor, string $queue)

Logs the status of the queued job descriptor.

Parameters

bool|null|QueuedJobDescriptor $descriptor
string $queue

listJobs()

Logs the number of current jobs per queue

setDefaultRules(array $rules)

Assign default rules for this task

Parameters

array $rules

array getDefaultRules()

No description

Return Value

array

List of rules

runQueue(string $queue)

Run tasks on the given queue

Parameters

string $queue

protected null|QueuedJobDescriptor getNextJobDescriptorWithoutMutex(string $queue)

No description

Parameters

string $queue

Return Value

null|QueuedJobDescriptor