ActionScheduler_WPCLI_QueueRunner::setup( int $batch_size, array $hooks = array(), string $group = '', bool $force = false )
Set up the Queue before processing.
Description Description
Parameters Parameters
- $batch_size
-
(Required) The batch size to process.
- $hooks
-
(Optional) The hooks being used to filter the actions claimed in this batch.
Default value: array()
- $group
-
(Optional) The group of actions to claim with this batch.
Default value: ''
- $force
-
(Optional) Whether to force running even with too many concurrent processes.
Default value: false
Return Return
(int) The number of actions that will be run.
Source Source
File: packages/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_QueueRunner.php