Fix typo.

This fixes #85.
main
Vincent Driessen 13 years ago
parent 074af72536
commit 84988bdf94

@ -8,7 +8,7 @@ class JobTimeoutException(Exception):
pass pass
class death_pentalty_after(object): class death_penalty_after(object):
def __init__(self, timeout): def __init__(self, timeout):
self._timeout = timeout self._timeout = timeout

@ -20,7 +20,7 @@ from .queue import Queue, get_failed_queue
from .connections import get_current_connection from .connections import get_current_connection
from .utils import make_colorizer from .utils import make_colorizer
from .exceptions import NoQueueError, UnpickleError from .exceptions import NoQueueError, UnpickleError
from .timeouts import death_pentalty_after from .timeouts import death_penalty_after
green = make_colorizer('darkgreen') green = make_colorizer('darkgreen')
yellow = make_colorizer('darkyellow') yellow = make_colorizer('darkyellow')
@ -357,7 +357,7 @@ class Worker(object):
job.origin, time.time())) job.origin, time.time()))
try: try:
with death_pentalty_after(job.timeout or 180): with death_penalty_after(job.timeout or 180):
rv = job.perform() rv = job.perform()
except Exception as e: except Exception as e:
fq = self.failed_queue fq = self.failed_queue

Loading…
Cancel
Save