Skip to content

Allow passing arguments to the RQ enqueue_call function#5208

Merged
wardi merged 5 commits into
masterfrom
pass-rq-options-to-enqueue
Feb 18, 2020
Merged

Allow passing arguments to the RQ enqueue_call function#5208
wardi merged 5 commits into
masterfrom
pass-rq-options-to-enqueue

Conversation

@amercader
Copy link
Copy Markdown
Member

Right now you can only pass the timeout argument to the RQ enqueue_call invocation that we use on toolkit.enqueue_job() (added in #4601), but there are other useful arguments that can be passed, like depends_on, ttl etc

Rather than explicitly allow just one of them, it's better to just pass through all of them.

This is backwards compatible, so I proposed we backport it to at least 2.8

Right now you can only pass the `timeout` argument to the
RQ `enqueue_call` invocation that we use on `toolkit.enqueue_job()`, but
there are other useful arguments that can be passed, like `depends_on`,
`ttl` etc

Rather than explicitly allow just one of them, it's better to just pass
through all of them.
@amercader
Copy link
Copy Markdown
Member Author

Remove the timeout kw

@amercader amercader added the WIP label Feb 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants