|
|
@ -29,7 +29,7 @@ green = make_colorizer('darkgreen')
|
|
|
|
yellow = make_colorizer('darkyellow')
|
|
|
|
yellow = make_colorizer('darkyellow')
|
|
|
|
blue = make_colorizer('darkblue')
|
|
|
|
blue = make_colorizer('darkblue')
|
|
|
|
|
|
|
|
|
|
|
|
DEF_TTL = 500
|
|
|
|
DEFAULT_RESULT_TTL = 500
|
|
|
|
|
|
|
|
|
|
|
|
class StopRequested(Exception):
|
|
|
|
class StopRequested(Exception):
|
|
|
|
pass
|
|
|
|
pass
|
|
|
@ -97,7 +97,7 @@ class Worker(object):
|
|
|
|
return worker
|
|
|
|
return worker
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def __init__(self, queues, name=None, default_result_ttl=DEF_TTL,
|
|
|
|
def __init__(self, queues, name=None, default_result_ttl=DEFAULT_RESULT_TTL,
|
|
|
|
connection=None, exc_handler=None): # noqa
|
|
|
|
connection=None, exc_handler=None): # noqa
|
|
|
|
if connection is None:
|
|
|
|
if connection is None:
|
|
|
|
connection = get_current_connection()
|
|
|
|
connection = get_current_connection()
|
|
|
|