Automattic\WooCommerce\Internal\BatchProcessing
BatchProcessingController::handle_watchdog_action
Schedule a processing action for all the processors that are enqueued but not scheduled (because they have just been enqueued, or because the processing for a batch failed).
Method of the class: BatchProcessingController{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->handle_watchdog_action(): void;
BatchProcessingController::handle_watchdog_action() BatchProcessingController::handle watchdog action code WC 11.0.1
private function handle_watchdog_action(): void {
$pending_processes = $this->sanitize_processor_list( $this->get_enqueued_processors() );
if ( empty( $pending_processes ) ) {
return;
}
foreach ( $pending_processes as $process_name ) {
if ( ! $this->is_scheduled( $process_name ) ) {
$this->schedule_batch_processing( $process_name );
}
}
$this->schedule_watchdog_action( true );
}