@ -155,7 +155,7 @@ class Queue(object):
def fetch_job ( self , job_id ) :
try :
job = self . job_class . fetch ( job_id , connection = self . connection )
job = self . job_class . fetch ( job_id , connection = self . connection , serializer = self . serializer )
except NoSuchJobError :
self . remove ( job_id )
else :
@ -511,7 +511,8 @@ nd
dependent_job for dependent_job
in self . job_class . fetch_many (
dependent_job_ids ,
connection = self . connection
connection = self . connection ,
serializer = self . serializer
) if dependent_job . dependencies_are_met (
exclude_job_id = job . id ,
pipeline = pipe
@ -581,7 +582,7 @@ nd
return None
@classmethod
def dequeue_any ( cls , queues , timeout , connection = None , job_class = None ):
def dequeue_any ( cls , queues , timeout , connection = None , job_class = None , serializer = None ):
""" Class method returning the job_class instance at the front of the given
set of Queues , where the order of the queues is important .
@ -602,9 +603,10 @@ nd
queue_key , job_id = map ( as_text , result )
queue = cls . from_queue_key ( queue_key ,
connection = connection ,
job_class = job_class )
job_class = job_class ,
serializer = serializer )
try :
job = job_class . fetch ( job_id , connection = connection )
job = job_class . fetch ( job_id , connection = connection , serializer = serializer )
except NoSuchJobError :
# Silently pass on jobs that don't exist (anymore),
# and continue in the look