JobWorkerCommand
extends BaseCommand
in package
Gearman worker daemon.
Ported from lib/task/jobs/jobWorkerTask.class.php.
NOTE: This command still delegates to php symfony jobs:worker because it
requires the full Symfony event dispatcher, sfContext, Gearman worker loop
with signal handlers, and tight integration with the Net_Gearman_Worker
class that cannot be cleanly reproduced outside the Symfony task runner.
The worker loop uses beginWork() callbacks, pcntl signals, and persistent
database connections that depend on the Symfony runtime.
Table of Contents
Methods
- __construct() : mixed
- getDescription() : string
- Get the command description.
- getName() : string
- Get the command name.
- getNamespace() : string
- Get the namespace portion of the command name.
- run() : int
- Run the command (called by the CLI router).
Methods
__construct()
public
__construct([array<string|int, mixed> $argv = [] ]) : mixed
Parameters
- $argv : array<string|int, mixed> = []
getDescription()
Get the command description.
public
getDescription() : string
Return values
stringgetName()
Get the command name.
public
getName() : string
Return values
stringgetNamespace()
Get the namespace portion of the command name.
public
getNamespace() : string
Return values
stringrun()
Run the command (called by the CLI router).
public
run() : int