def METHOD_NAME(self, worker):
    # Look if worker had assigned job to do
    job = worker.current_job
    if job is not None and not job.done:
        # Reset job
        job.set_worker(None)
        job.reset()
        # Add job back to queue
        self._job_queue_by_host_name[job.host_name].appendleft(job)
    # Remove worker from registered workers
    self._workers_by_id.pop(worker.id, None)
    host_name = worker.host_name
    if worker in self._workers_by_host_name[host_name]:
        self._workers_by_host_name[host_name].remove(worker)
    print("Removed worker for \"{}\"".format(host_name))