WorkerAiContentProcess
extends WorkerBase
in package
Base class for worker jobs, which are run via CLI in a separate process
Table of Contents
Properties
- $job_name : mixed
- Specify a custom job name by overwriting this
- $metric_names : mixed
- Specify up to three metrics
Methods
- __construct() : mixed
- Constructor
- getMetricNames() : array<int, string>
- Gets the metric names.
- getName() : string
- Gets the job name
- run() : mixed
- Process AI Content queue. 1 at a time to prevent overlap
Properties
$job_name
Specify a custom job name by overwriting this
protected
mixed
$job_name
= 'Process AI Content Queue'
$metric_names
Specify up to three metrics
protected
mixed
$metric_names
= array(1 => '', 2 => '', 3 => '')
Methods
__construct()
Constructor
public
final __construct() : mixed
Manually checks if the method 'run' exists, because it's a varags, so can't use the normal abstract function approach
getMetricNames()
Gets the metric names.
public
getMetricNames() : array<int, string>
Tags
Return values
array<int, string>getName()
Gets the job name
public
getName() : string
Tags
Return values
stringrun()
Process AI Content queue. 1 at a time to prevent overlap
public
run([bool $retry_failed = false ]) : mixed
Parameters
- $retry_failed : bool = false