Tribe__Process__Queue::handle_cron_healthcheck()

Handles the cron health-check.

Contents

Restart the background process if not already running and data exists in the queue.


Source

File: src/Tribe/Process/Queue.php

	public function handle_cron_healthcheck() {
		if ( $this->is_process_running() ) {
			// Background process already running.
			exit;
		}

		if ( $this->is_queue_empty() ) {
			// No data to process.
			$this->clear_scheduled_event();
			exit;
		}

		$this->handle();

		exit;
	}

Top ↑

Changelog

Changelog
Version Description
4.9.5 Introduced.