class ProcessManager extends ProcessManager (View source)

Class ProcessManager

customise shell command to allow child tasks to persist even after manager process is terminated this lets the started jobs to finish properly in case the management process terminates fore example there are no more jobs to start or queue is paused

Traits

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

Config options

persistent_child_process bool

Enable / disable persistent child process If this is enabled the child processes can outlive the parent (manager process) This is what is needed for most cases as the manager process only starts new child processes Child processes on the other hand, actually execute queued jobs so they may take longer to execute Disabling this may cause the child processes to terminate prematurely which may result it multiple job execution retries / resumes Disable this option only if you are debugging a situation when a child process keeps hanging around for way too long (hours) Adding execution timeout to individual queued jobs is recommended to avoid such situation

Properties

Methods

public static 
config()

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

public
mixed
stat(string $name) deprecated

Get inherited config value

public
mixed
uninherited(string $name)

Gets the uninherited value for the given config option

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

Update the config value for a given property

protected
string
getCommand(string $binary, string $worker, string $stdout, string $stderr)

No description

public
__destruct()

No description

Details

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

protected string getCommand(string $binary, string $worker, string $stdout, string $stderr)

No description

Parameters

string $binary
string $worker
string $stdout
string $stderr

Return Value

string

__destruct()

No description