Executor
in package
Uses
UtilsProvider
Execute a server job.
Table of Contents
Properties
- $core : mixed
Methods
- __construct() : mixed
- C'tor.
- buildErrorMessages() : mixed
- Build error messages based on the "remaining" status.
- getPluginConstantPrefix() : string
- Get the prefix of this package so we can utils package natively.
- run() : mixed
- Run multiple server jobs by ID.
- setupConstants() : mixed
- Make sure the REAL_QUEUE constants are available.
- isValidJob() : mixed
- Check if a given job is valid for execution.
Properties
$core
private
mixed
$core
Methods
__construct()
C'tor.
public
__construct(Core $core) : mixed
Parameters
- $core : Core
Tags
buildErrorMessages()
Build error messages based on the "remaining" status.
public
buildErrorMessages(array<string|int, mixed> $remaining) : mixed
Parameters
- $remaining : array<string|int, mixed>
-
Result of
Query::readRemaining
getPluginConstantPrefix()
Get the prefix of this package so we can utils package natively.
public
getPluginConstantPrefix() : string
Return values
stringrun()
Run multiple server jobs by ID.
public
run(array<string|int, int> $ids, int $maxExecutionTimeMs[, bool $omitClientData = false ]) : mixed
Parameters
- $ids : array<string|int, int>
- $maxExecutionTimeMs : int
- $omitClientData : bool = false
-
See
Query::read
setupConstants()
Make sure the REAL_QUEUE constants are available.
public
static setupConstants() : mixed
isValidJob()
Check if a given job is valid for execution.
protected
isValidJob(Job $job) : mixed
Parameters
- $job : Job