src/Shell/QueueShell.php
public function clean() {
		if (!Configure::read('Queue.cleanuptimeout')) {
			$this->abort('You disabled cleanuptimout in config. Aborting.');
		}

		$this->out('Deleting old jobs, that have finished before ' . date('Y-m-d H:i:s', time() - (int)Configure::read('Queue.cleanuptimeout')));
		$this->QueuedJobs->cleanOldJobs();
		$this->QueueProcesses->cleanEndedProcesses();
	}
public function clean() {
		if (!Configure::read('Queue.cleanuptimeout')) {
			$this->abort('You disabled cleanuptimout in config. Aborting.');
		}

		$this->out('Deleting old jobs, that have finished before ' . date('Y-m-d H:i:s', time() - (int)Configure::read('Queue.cleanuptimeout')));
		$this->QueuedJobs->cleanOldJobs();
		$this->QueueProcesses->cleanEndedProcesses();
	}
public function clean ( ) { if ( ! Configure :: read ( 'Queue.cleanuptimeout' ) ) { $ this -> abort ( 'You disabled cleanuptimout in config. Aborting.' ) ; } $ this -> out ( 'Deleting old jobs, that have finished before ' . date ( 'Y-m-d H:i:s' , time ( ) - ( int ) Configure :: read ( 'Queue.cleanuptimeout' ) ) ) ; $ this -> QueuedJobs -> cleanOldJobs ( ) ; $ this -> QueueProcesses -> cleanEndedProcesses ( ) ; }
Manually trigger a Finished job cleanup.

@return void
Manually trigger a Finished job cleanup .