highfive/jobs.py
def return_job(self, job):
        """
        Returns a job to its source job set to be run again later.
        """

        if self._closed:
            return

        js = self._job_sources[job]
        if len(self._ready_callbacks) > 0:
            callback = self._ready_callbacks.popleft()
            callback(job)
        else:
            del self._job_sources[job]
            js.return_job(job)
def return_job(self, job):
        """
        Returns a job to its source job set to be run again later.
        """

        if self._closed:
            return

        js = self._job_sources[job]
        if len(self._ready_callbacks) > 0:
            callback = self._ready_callbacks.popleft()
            callback(job)
        else:
            del self._job_sources[job]
            js.return_job(job)
Returns a job to its source job set to be run again later.