|
|
@ -166,8 +166,8 @@ class Queue(object):
|
|
|
|
|
|
|
|
|
|
|
|
# TODO: job with dependency shouldn't have "queued" as status
|
|
|
|
# TODO: job with dependency shouldn't have "queued" as status
|
|
|
|
job = self.job_class.create(func, args, kwargs, connection=self.connection,
|
|
|
|
job = self.job_class.create(func, args, kwargs, connection=self.connection,
|
|
|
|
result_ttl=result_ttl, status=Status.QUEUED,
|
|
|
|
result_ttl=result_ttl, status=Status.QUEUED,
|
|
|
|
description=description, depends_on=depends_on, timeout=timeout)
|
|
|
|
description=description, depends_on=depends_on, timeout=timeout)
|
|
|
|
|
|
|
|
|
|
|
|
# If job depends on an unfinished job, register itself on it's
|
|
|
|
# If job depends on an unfinished job, register itself on it's
|
|
|
|
# parent's dependents instead of enqueueing it.
|
|
|
|
# parent's dependents instead of enqueueing it.
|
|
|
|