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


Top ↑

Return Return

(int) The number of actions that will be run.


Top ↑

Source Source

File: packages/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_QueueRunner.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.