프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 initSignalHandler ( ) : void | ||
리턴 | void |