Class yii\queue\beanstalk\Command

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

Manages application beanstalk-queue.

Property Details

$defaultAction public property
public string $defaultAction 'info'
$queue public property

Method Details

actionListen() public method

Listens beanstalk-queue and runs new jobs.

It can be used as daemon process.

public null|integer actionListen ( $timeout 3 )
$timeout integer

Number of seconds to wait a job.

return null|integer

Exit code.

actionRemove() public method (available since version 2.0.1)

Removes a job by id.

public integer actionRemove ( $id )
$id integer
return integer

Exit code

actionRun() public method

Runs all jobs from beanstalk-queue.

It can be used as cron job.

public null|integer actionRun ( )
return null|integer

Exit code.

actions() public method

public void actions ( )
isWorkerAction() protected method

protected boolean isWorkerAction ( $actionID )
$actionID string