From b03413e9eb4505ba686d278bd8517209ecd280fb Mon Sep 17 00:00:00 2001 From: Ethan Wolinsky Date: Mon, 8 May 2023 21:40:53 -0400 Subject: [PATCH] Add check for jobs without dependencies --- rq/dependency.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rq/dependency.py b/rq/dependency.py index e830b720..6682f95b 100644 --- a/rq/dependency.py +++ b/rq/dependency.py @@ -10,6 +10,8 @@ class Dependency: pipe = pipeline if pipeline else cls.connection ready_jobs = [] for job in jobs: + if not job._dependency_ids: + pass while True: try: pipe.watch(*[Job.key_for(dependency_id) for dependency_id in job._dependency_ids])