Class yii\queue\gearman\Command

Inheritanceyii\queue\gearman\Command » yii\queue\cli\Command » yii\console\Controller

Manages application gearman-queue.

Public Properties

Hide inherited properties

PropertyTypeDescriptionDefined 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

Property Details

$queue public property

Method Details

actionListen() public method

Listens gearman-queue and runs new jobs.

It can be used as daemon process.

public null|integer actionListen ( )
return null|integer

Exit code.

actionRun() public method

Runs all jobs from gearman-queue.

It can be used as cron job.

public null|integer actionRun ( )
return null|integer

Exit code.

isWorkerAction() protected method

protected boolean isWorkerAction ( $actionID )
$actionID string