PHP Class Automattic\WP\Cron_Control\CLI\Lock

Inheritance: extends WP_CLI_Command
Show file Open project: Automattic/vip-mu-plugins-public

Public Methods

Method Description
manage_create_lock ( $args, $assoc_args ) Manage the lock that limits concurrent job creation
manage_event_lock ( $args, $assoc_args ) Manage the lock that limits concurrent execution of jobs with the same action
manage_run_lock ( $args, $assoc_args ) Manage the lock that limits concurrent job executions

Private Methods

Method Description
get_reset_lock ( $args, $assoc_args, $lock_name, $lock_limit, $lock_description ) Retrieve a lock's current value, or reset it

Method Details

manage_create_lock() public method

Manage the lock that limits concurrent job creation
public manage_create_lock ( $args, $assoc_args )

manage_event_lock() public method

Manage the lock that limits concurrent execution of jobs with the same action
public manage_event_lock ( $args, $assoc_args )

manage_run_lock() public method

Manage the lock that limits concurrent job executions
public manage_run_lock ( $args, $assoc_args )