Class yii\queue\gearman\Command
| Inheritance | yii\queue\gearman\Command » yii\queue\cli\Command » yii\console\Controller | 
|---|
Manages application gearman-queue.
Public Properties
| Property | Type | Description | Defined By | 
|---|---|---|---|
| $isolate | boolean | Isolate mode. | yii\queue\cli\Command | 
| $queue | yii\queue\gearman\Queue | yii\queue\gearman\Command | |
| $verbose | boolean | Verbose mode of a job execute. | yii\queue\cli\Command | 
| $verboseConfig | array | Additional options to the verbose behavior. | yii\queue\cli\Command | 
Public Methods
| Method | Description | Defined By | 
|---|---|---|
| actionExec() | Executes a job. | yii\queue\cli\Command | 
| actionListen() | Listens gearman-queue and runs new jobs. | yii\queue\gearman\Command | 
| actionRun() | Runs all jobs from gearman-queue. | yii\queue\gearman\Command | 
| beforeAction() | yii\queue\cli\Command | |
| optionAliases() | yii\queue\cli\Command | |
| options() | yii\queue\cli\Command | 
Protected Methods
| Method | Description | Defined By | 
|---|---|---|
| canIsolate() | yii\queue\cli\Command | |
| canVerbose() | yii\queue\cli\Command | |
| handleMessage() | Handles message using child process. | yii\queue\cli\Command | 
| isWorkerAction() | yii\queue\gearman\Command | 
Property Details
Method Details
Listens gearman-queue and runs new jobs.
It can be used as daemon process.
| public null|integer actionListen ( ) | ||
| return | null|integer | Exit code. | 
|---|---|---|
Runs all jobs from gearman-queue.
It can be used as cron job.
| public null|integer actionRun ( ) | ||
| return | null|integer | Exit code. | 
|---|---|---|
| protected boolean isWorkerAction ( $actionID ) | ||
| $actionID | string | |