Fixes from comments in #415

Added tox/vagrant tmp dir to gitignore
Removed unused import
Renamed id to job_id in enqueue_call() as per comments in #415
main
foxx 10 years ago
parent b6499ce71c
commit 0466562a13

3
.gitignore vendored

@ -7,3 +7,6 @@
/.tox
/dist
/build
.tox
.vagrant
Vagrantfile

@ -7,7 +7,6 @@ import inspect
import warnings
from functools import partial
from uuid import uuid4
from uuid import UUID
from rq.compat import as_text, decode_redis_hash, string_types, text_type

@ -164,7 +164,7 @@ class Queue(object):
def enqueue_call(self, func, args=None, kwargs=None, timeout=None,
result_ttl=None, description=None, depends_on=None,
id=None):
job_id=None):
"""Creates a job to represent the delayed function call and enqueues
it.
@ -178,7 +178,7 @@ class Queue(object):
job = self.job_class.create(func, args, kwargs, connection=self.connection,
result_ttl=result_ttl, status=Status.QUEUED,
description=description, depends_on=depends_on, timeout=timeout,
id=id)
id=job_id)
# If job depends on an unfinished job, register itself on it's
# parent's dependents instead of enqueueing it.

Loading…
Cancel
Save