arq icon indicating copy to clipboard operation
arq copied to clipboard

Document querying single Job by ID

Open johtso opened this issue 3 years ago • 1 comments

I'm assuming it's as simple as instantiating a Job object with the relevant job id, but the documentation doesn't mention that approach, only using Job references that are returned when they are first created. Also what happens if the job doesn't exist?

johtso avatar Apr 24 '21 10:04 johtso

yes it's very simple, you also need to pass a redis instance:

https://github.com/samuelcolvin/arq/blob/cca11e46b7c8ebbd5e17eae1ca3b51eb8739feb7/arq/jobs.py#L64-L70

PR welcome to add this to the docs.

samuelcolvin avatar Apr 24 '21 18:04 samuelcolvin