DoormanRunner
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
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).
Gets the uninherited value for the given config option
Assign default rules for this task
No description
Run tasks on the given queue
Details
QueuedJobService
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
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
deprecated
Update the config value for a given property
$this
setDefaultRules(array $rules)
Assign default rules for this task
array
getDefaultRules()
runQueue(string $queue)
Run tasks on the given queue