Removes all jobs from the pool

@return void
423919
public function clear()
    {
        foreach ($this->jobs as $name => $job) {
            $key = $this->makeCacheKey($name);
            $this->cache->forget($key);
        }

        $this->jobs = array();
    }
544196
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();
	}
50497
public function down()
    {
        if (!Schema::hasColumn('jobs', 'reserved')) {
            Schema::table('jobs', function (Blueprint $table) {
                $table->tinyInteger('reserved')->unsigned();
            });
        }
        if (Schema::hasColumn('failed_jobs', 'reserved')) {
            Schema::table('failed_jobs', function (Blueprint $table) {
                $table->dropColumn('exception');
            });
        }
    }
1188808
public function deleteAll() {

        $tablenames = $this->getAllTableNames();
        foreach ($tablenames as $tablename) {
            $this->databaseConnection->query("DROP TABLE " . $tablename);
        }

    }
268774
public function clearPublishJob()
    {
        $job = $this->owner->PublishJob();
        if ($job && $job->exists()) {
            $job->delete();
        }
        $this->owner->PublishJobID = 0;
    }
398121
public function purgeAll() {
		
		if ($this->useFallback) {
			if ($this->log) {
				$this->log->trace("Purging the whole file cache.");
			}
			$files = glob($this->getDirectory()."*");
			foreach ($files as $filename) {
				unlink($filename);
			}
			return;
		}
		
		apc_clear_cache('user');
	}
157973
public static function clearAll()
    {
        $dir = new \DirectoryIterator(static::config('directory'));

        foreach ($dir as $fileinfo) {

            if ($fileinfo->isFile()) {
                $cacheKey = $fileinfo->getFilename();
                static::clear($cacheKey);
            }
        }
    }
871255
public function cleanUp()
    {
        // create a separate queue for each priority
        foreach (PriorityKeys::getAll() as $priorityKey) {
            $this->workers[$this->uniqueWorkerName($priorityKey)]->stop();
        }
    }
1235958
public function clear()
	{
		foreach( $GLOBALS[$this->poolKey] as $key => $value )
			unset( $GLOBALS[$this->poolKey][$key] );
	}
443861
protected function cleanup()
    {
        $this->filesystem->remove($this->tmpFolder);
        $this->root = null;
        $this->urlsets = array();
    }
975288
def clear_jobs(self, recursive=True):
        
        if recursive:
            self._scatter_link.clear_jobs(recursive)
        self.jobs.clear()
258014
public function down()
    {
        Schema::table($this->getTableName(), function (Blueprint $table) {
            $table->tinyInteger('reserved')->unsigned()->default(0);
            $table->dropIndex('jobs_queue_reserved_at_index');
        });

        Schema::table($this->getFailedTableName(), function (Blueprint $table) {
            $table->dropColumn('exception');
        });
    }
224931
public function removeOrphans(): void
    {
        $machineIds = $this->findOrphanedIds();
        if (count($machineIds) > 0) {
            $this->removeIds($machineIds);
        }
    }
270711
private function cleanup()
    {
        foreach ($this->tokens as $i => $t) {
            if ($t[0] === self::$deleteToken) {
                unset($this->tokens[$i]);
            }
        }
        $this->tokens = array_values($this->tokens);
    }
944832
public function clear() {
		$this->request->allowMethod('post', 'delete');
		$ds = $this->QueueInfo->getDataSource();
		if ($ds->truncate($this->QueueInfo)) {
			$this->Flash->success(__d('cake_settings_app', 'The task queue has been cleared.'));
		} else {
			$this->Flash->error(__d('cake_settings_app', 'The task queue could not be cleared. Please, try again.'));
		}

		$urlRedirect = ['plugin' => 'cake_settings_app', 'controller' => 'queues', 'action' => 'index'];
		return $this->redirect($urlRedirect);
	}
658369
def clear_jobs(self, recursive=True):
        
        if recursive:
            for link in self._links.values():
                link.clear_jobs(recursive)
        self.jobs.clear()
56296
public function cleanup()
    {
        $this->db->beginTransaction();

        // drop tables
        $rslt = $this->db->query( "SELECT tablename FROM pg_tables WHERE schemaname = 'public' AND tablename NOT LIKE 'pg_%'" );
        $rslt->setFetchMode( PDO::FETCH_NUM );
        $rows = $rslt->fetchAll();
        unset( $rslt );
        foreach ( $rows as $row )
        {
            $table = $row[0];
            $this->db->exec( "DROP TABLE $table" );
        }

        // drop sequences
        $rslt = $this->db->query( "SELECT relname FROM pg_catalog.pg_class WHERE relkind='S'" );
        $rslt->setFetchMode( PDO::FETCH_NUM );
        $rows = $rslt->fetchAll();
        foreach ( $rows as $row )
        {
            $seq = $row[0];
            $this->db->exec( "DROP SEQUENCE $seq" );
        }

        // FIXME: drop triggers?

        $this->db->commit();
    }