summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSelwin Ong <selwin.ong@gmail.com>2022-09-23 08:09:48 +0700
committerSelwin Ong <selwin.ong@gmail.com>2022-09-23 08:09:48 +0700
commitdd13896b31b2cc25e5e858c2397a1896488ed8a0 (patch)
tree75ee7c06a001c6c118d44e5ef5bc1c3df1eb484b
parentc6b07d375589f8fd7a8071993f12a6bde5222b7f (diff)
downloadrq-dependency-canceled.tar.gz
Document `exclude_job_id` in job.dependencies_are_met()dependency-canceled
-rw-r--r--rq/job.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/rq/job.py b/rq/job.py
index 0436cf4..e21eebe 100644
--- a/rq/job.py
+++ b/rq/job.py
@@ -998,6 +998,7 @@ class Job:
This is useful when enqueueing the dependents of a _successful_ job -- that status of
`FINISHED` may not be yet set in redis, but said job is indeed _done_ and this
method is _called_ in the _stack_ of its dependents are being enqueued.
+ `exclude_job_id` allows us to exclude certain job IDs from being checked.
"""
connection = pipeline if pipeline is not None else self.connection