ActionScheduler_QueueCleaner::clean()publicWC 1.0

Do all of the cleaning actions.

Method of the class: ActionScheduler_QueueCleaner{}

No Hooks.

Return

null. Nothing (null).

Usage

$ActionScheduler_QueueCleaner = new ActionScheduler_QueueCleaner();
$ActionScheduler_QueueCleaner->clean( $time_limit );
$time_limit(int)
The number of seconds to use as the timeout and failure period.
Default: 300 (5 minutes)

ActionScheduler_QueueCleaner::clean() code WC 8.7.0

public function clean( $time_limit = 300 ) {
	$this->delete_old_actions();
	$this->reset_timeouts( $time_limit );
	$this->mark_failures( $time_limit );
}