Automattic\WooCommerce\Internal\BatchProcessing

BatchProcessingController::is_scheduled()publicWC 1.0

Check if a batch processing action is already scheduled for a given processor. Differs from as_has_scheduled_action in that this excludes actions in progress.

{} It's a method of the class: BatchProcessingController{}

No Hooks.

Return

true|false. True if a batch processing action is already scheduled for the processor.

Usage

$BatchProcessingController = new BatchProcessingController();
$BatchProcessingController->is_scheduled( $processor_class_name ): bool;
$processor_class_name(string) (required)
Fully qualified class name of the batch processor.

Code of BatchProcessingController::is_scheduled() WC 7.1.0

public function is_scheduled( string $processor_class_name ): bool {
	return as_has_scheduled_action( self::PROCESS_SINGLE_BATCH_ACTION_NAME, array( $processor_class_name ) );
}