fix_schema()
fix_schema(array $args, array $assoc_args) : mixed
Force tables schema creation for Action Scheduler
OPTIONS
Parameters
array | $args | Positional arguments. |
array | $assoc_args | Keyed arguments. |
Commands for Action Scheduler.
run(array $args, array $assoc_args) : mixed
Run the Action Scheduler
[--batch-size=<size>] : The maximum number of actions to run. Defaults to 100.
[--batches=<size>] : Limit execution to a number of batches. Defaults to 0, meaning batches will continue being executed until all actions are complete.
[--cleanup-batch-size=<size>] : The maximum number of actions to clean up. Defaults to the value of --batch-size.
[--hooks=<hooks>]
: Only run actions with the specified hook. Omitting this option runs actions with any hook. Define multiple hooks as a comma separated string (without spaces), e.g. --hooks=hook_one,hook_two,hook_three
[--group=<group>] : Only run actions from the specified group. Omitting this option runs actions from all groups.
[--exclude-groups=<groups>]
: Run actions from all groups except the specified group(s). Define multiple groups as a comma separated string (without spaces), e.g. '--group_a,group_b'. This option is ignored when --group
is used.
[--free-memory-on=<count>] : The number of actions to process between freeing memory. 0 disables freeing memory. Default 50.
[--pause=<seconds>] : The number of seconds to pause when freeing memory. Default no pause.
[--force] : Whether to force execution despite the maximum number of concurrent processes being exceeded.
array | $args | Positional arguments. |
array | $assoc_args | Keyed arguments. |
When an error occurs.