action_scheduler_canceled_corrupted_action, $action_id

action_scheduler_canceled_corrupted_action, $action_id

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

do_action('action_scheduler_canceled_corrupted_action, $action_id') is found 1 times:

  • /packages/action-scheduler/classes/abstracts/ActionScheduler_Abstract_QueueRunner.php line 159
    	private function cancel_corrupted_action( int $action_id ) {
    		$this->store->cancel_action( $action_id );
    
    		// Corrupted entries typically contain an excessive number of logs, which we intend to remove immediately.
    		do_action( 'action_scheduler_canceled_corrupted_action', $action_id );
    
    		// Add a comment to clarify the missing logs and explain the reason for the cancellation.
    		ActionScheduler_Logger::instance()->log(
    			$action_id,
    			__( 'This action data appears to be corrupt. We are cancelling it to allow recurring actions to be re-created by extensions.', 'woocommerce' )
    		);