class DoormanRunner extends BaseRunner implements TaskRunnerEngine (View source)

Runs all jobs through the doorman engine

Traits

Provides extensions to this object to integrate it with standard config API methods.

Properties

static private int $max_ticks

How many ticks are executed per one see runQueue method call set 0 for unlimited ticks

static private int $tick_interval

How many seconds between ticks

static private string $child_runner

Name of the dev task used to run the child process

Methods

getService()

Returns an instance of the QueuedJobService.

listJobs()

Logs the number of current jobs per queue

static Config_ForClass
config()

Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).

mixed
stat(string $name) deprecated

Get inherited config value

mixed
uninherited(string $name)

Gets the uninherited value for the given config option

$this
set_stat(string $name, mixed $value) deprecated

Update the config value for a given property

$this
setDefaultRules(array $rules)

Assign default rules for this task

array
getDefaultRules()

No description

runQueue(string $queue)

Run tasks on the given queue

Details

QueuedJobService getService()

Returns an instance of the QueuedJobService.

Return Value

QueuedJobService

listJobs()

Logs the number of current jobs per queue

static Config_ForClass config()

Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).

Return Value

Config_ForClass

mixed stat(string $name) deprecated

deprecated 5.0 Use ->config()->get() instead

Get inherited config value

Parameters

string $name

Return Value

mixed

mixed uninherited(string $name)

Gets the uninherited value for the given config option

Parameters

string $name

Return Value

mixed

$this set_stat(string $name, mixed $value) deprecated

deprecated 5.0 Use ->config()->set() instead

Update the config value for a given property

Parameters

string $name
mixed $value

Return Value

$this

$this setDefaultRules(array $rules)

Assign default rules for this task

Parameters

array $rules

Return Value

$this

array getDefaultRules()

Return Value

array

List of rules

runQueue(string $queue)

Run tasks on the given queue

Parameters

string $queue