Свойство | Тип | Описание | |
---|---|---|---|
$queue | the name of the queue component. default to 'queue'. | ||
$sleepTimeout | sleep timeout for infinite loop in second |
Метод | Описание | |
---|---|---|
actionListen ( string $cwd = null, integer $timeout = null, array $env = [] ) : void | This will continuously run new subprocesses to fetch job from the queue. | |
actionPeek ( integer $count = 1 ) : void | Peek messages from queue that are still active. | |
actionPost ( string $route, string $data = '{}' ) : void | Post a job to the queue. | |
actionPurge ( integer $count = 1 ) : void | Purging messages from queue that are still active. | |
actionRun ( ) : void | Fetch a job from the queue. | |
actionRunTask ( string $route, string $data = '{}' ) : void | Run a task without going to queue. | |
actionTest ( ) : void | ||
init ( ) : void | ||
options ( string $actionID ) : array | ||
setName ( string $value ) : void | Sets the name of the command. This should be overriden in the config. |
Метод | Описание | |
---|---|---|
createJob ( string $route, string $data = '{}' ) : UrbanIndo\Yii2\Queue\Job | Create a job from route and data. | |
getScriptPath ( ) : string | Returns the script path. | |
initSignalHandler ( ) : void | Initialize signal handler for the process. | |
runQueueFetching ( string $command, string $cwd = null, integer $timeout = null, array $env = [] ) : void | Run the queue fetching process. |
public actionPeek ( integer $count = 1 ) : void | ||
$count | integer | Number of messages to peek. |
Результат | void |
public actionPurge ( integer $count = 1 ) : void | ||
$count | integer | Number of messages to delete. |
Результат | void |
protected getScriptPath ( ) : string | ||
Результат | string |
protected initSignalHandler ( ) : void | ||
Результат | void |