|
|
@ -23,7 +23,6 @@ from .exceptions import DequeueTimeout, ShutDownImminentException
|
|
|
|
from .job import Job, JobStatus
|
|
|
|
from .job import Job, JobStatus
|
|
|
|
from .logutils import setup_loghandlers
|
|
|
|
from .logutils import setup_loghandlers
|
|
|
|
from .queue import Queue, get_failed_queue
|
|
|
|
from .queue import Queue, get_failed_queue
|
|
|
|
from .handlers import move_to_failed_queue
|
|
|
|
|
|
|
|
from .registry import FinishedJobRegistry, StartedJobRegistry, clean_registries
|
|
|
|
from .registry import FinishedJobRegistry, StartedJobRegistry, clean_registries
|
|
|
|
from .suspension import is_suspended
|
|
|
|
from .suspension import is_suspended
|
|
|
|
from .timeouts import UnixSignalDeathPenalty
|
|
|
|
from .timeouts import UnixSignalDeathPenalty
|
|
|
@ -768,6 +767,7 @@ class Worker(object):
|
|
|
|
def move_to_failed_queue(self, job, *exc_info):
|
|
|
|
def move_to_failed_queue(self, job, *exc_info):
|
|
|
|
"""Default exception handler: move the job to the failed queue."""
|
|
|
|
"""Default exception handler: move the job to the failed queue."""
|
|
|
|
self.log.warning('Moving job to {0!r} queue'.format(self.failed_queue.name))
|
|
|
|
self.log.warning('Moving job to {0!r} queue'.format(self.failed_queue.name))
|
|
|
|
|
|
|
|
from .handlers import move_to_failed_queue
|
|
|
|
move_to_failed_queue(job, *exc_info)
|
|
|
|
move_to_failed_queue(job, *exc_info)
|
|
|
|
|
|
|
|
|
|
|
|
@staticmethod
|
|
|
|
@staticmethod
|
|
|
|