Remove jobs

@param \CampaignChain\CoreBundle\Entity\Job $jobs
437133
public function removeJob(\CampaignChain\CoreBundle\Entity\Job $jobs)
    {
        $this->jobs->removeElement($jobs);
    }
380647
def delete_job(self, id, jobstore=None):
        
        warnings.warn('delete_job has been deprecated, use remove_job instead.', DeprecationWarning)

        self.remove_job(id, jobstore)
1114613
public function remove($documents)
    {
        if (!is_array($documents)) {
            $documents = array($documents);
        }

        $remove =& $this->getArchive()->getByRef('remove', array());
        foreach ($documents as $document) {
            $remove[] = $document;
        }
    }
441474
def remove_jobs(self, mask):
        
        jobnames = self.table[mask]['jobname']
        jobkey = self.table[mask]['jobkey']
        self.table[mask]['status'] = JobStatus.removed
        for jobname, jobkey in zip(jobnames, jobkey):
            fullkey = JobDetails.make_fullkey(jobname, jobkey)
            self._cache.pop(fullkey).status = JobStatus.removed
        self.write_table_file()
625905
protected function doRemoveJob(Key $jobKey)
    {
        if (false == $job = $this->retrieveJob($jobKey)) {
            return false;
        }

        $result = $this->res->getTriggerStorage()->getCollection()->deleteMany([
            'jobName' => $jobKey->getName(),
            'jobGroup' => $jobKey->getGroup()
        ]);

        if (false == $result->isAcknowledged()) {
            throw new JobPersistenceException(sprintf('Couldn\'t remove job: "%s"', $jobKey));
        }

        $result = $this->res->getJobStorage()->delete($job);

        if (false == $result->isAcknowledged() || false == $result->getDeletedCount()) {
            return false;
        }

        return true;
    }
285099
public function removeChannel(\CampaignChain\CoreBundle\Entity\Channel $channels)
    {
        $this->channels->removeElement($channels);
    }
266293
def removeJob(self, jobBatchSystemID):
        """"""
        assert jobBatchSystemID in self.jobBatchSystemIDToIssuedJob
        jobNode = self.jobBatchSystemIDToIssuedJob[jobBatchSystemID]
        if jobNode.preemptable:
            # len(jobBatchSystemIDToIssuedJob) should always be greater than or equal to preemptableJobsIssued,
            # so decrement this value before removing the job from the issuedJob map
            assert self.preemptableJobsIssued > 0
            self.preemptableJobsIssued -= 1
        del self.jobBatchSystemIDToIssuedJob[jobBatchSystemID]
        # If service job
        if jobNode.jobStoreID in self.toilState.serviceJobStoreIDToPredecessorJob:
            # Decrement the number of services
            if jobNode.preemptable:
                self.preemptableServiceJobsIssued -= 1
            else:
                self.serviceJobsIssued -= 1

        return jobNode
975288
def clear_jobs(self, recursive=True):
        
        if recursive:
            self._scatter_link.clear_jobs(recursive)
        self.jobs.clear()
223308
public function removeAll(array $entities): void
    {
        if ([] === $entities) {
            return;
        }
        foreach ($entities as $entity) {
            $this->checkIsCorrectEntityType($entity);
            $this->entityManager->remove($entity);
        }

        $this->entityManager->flush();
    }
702071
public function removeApps(ArrayCollection $apps)
    {
        foreach ($apps as $app) {
            $app->removePage($this);
            $this->apps->removeElement($app);
        }
    }
1285468
public function deleteMultiple( $keys )
	{
		foreach( $keys as $key ) {
			$this->object->remove( $this->prefix . $key );
		}
	}
488285
public function clean()
    {
        $jobFiles = glob($this->getLocation() . '*.js');
        foreach ($jobFiles as $file) {
            unlink($file);
        }
    }
1287081
def destroy(self, job_ids):
        """"""
        for job_id in job_ids:
            self.client.resource_groups.delete(self.resource_group)
530471
protected function expectsJobs($jobs)
    {
        $jobs = is_array($jobs) ? $jobs : func_get_args();

        $this->withoutJobs();

        $this->beforeApplicationDestroyed(function () use ($jobs) {
            $dispatched = $this->getDispatchedJobs($jobs);

            $this->assertEmpty(
                $jobsNotDispatched = array_diff($jobs, $dispatched),
                'These expected jobs were not dispatched: ['.implode(', ', $jobsNotDispatched).']'
            );
        });

        return $this;
    }
1357615
protected function doesntExpectJobs($jobs)
    {
        $jobs = is_array($jobs) ? $jobs : func_get_args();

        $this->withoutJobs();

        $this->beforeApplicationDestroyed(function () use ($jobs) {
            $this->assertEmpty(
                $dispatched = $this->getDispatchedJobs($jobs),
                'These unexpected jobs were dispatched: ['.implode(', ', $dispatched).']'
            );
        });

        return $this;
    }
658369
def clear_jobs(self, recursive=True):
        
        if recursive:
            for link in self._links.values():
                link.clear_jobs(recursive)
        self.jobs.clear()
819706
public function remove(Batch ...$batches)
    {
        foreach ($batches as $batch) {
            foreach ($this->batches as $i => $batchItem) {
                if ($batchItem === $batch) {
                    unset($this->batches[$i]);
                }
            }
        }

        return $this;
    }