From af4b0436c1b3b397183a5a9d7b1d3f98e3f0fce0 Mon Sep 17 00:00:00 2001 From: Travis Johnson Date: Tue, 18 Nov 2014 12:09:14 -0500 Subject: [PATCH] instantiate a job instead of fetch this removes the need for the depended on job.id already being saved --- rq/queue.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rq/queue.py b/rq/queue.py index ff5f860..7dfb0f8 100644 --- a/rq/queue.py +++ b/rq/queue.py @@ -190,7 +190,7 @@ class Queue(object): # modifying the dependency. In this case we simply retry if depends_on is not None: if not isinstance(depends_on, self.job_class): - depends_on = Job.fetch(id=depends_on, connection=self.connection) + depends_on = Job(id=depends_on, connection=self.connection) with self.connection.pipeline() as pipe: while True: try: