-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get all Finished Jobs by Queue.? #842
Comments
Anyone could help me out with this issue? |
Have a look at registry.py. There are multiple registries available: StartedJobRegistry, FinishedJobRegistry and DeferredJobRegistry, where you can get the job_ids from. |
@scroogie OK, I have got insight into source code finally got the same way as you said. While registry was store as |
1 similar comment
@scroogie OK, I have got insight into source code finally got the same way as you said. While registry was store as |
The easiest way to get all jobs in a registry would be: registry = FinishedJobRegistry('default', connection=redis)
job_ids = registry.get_job_ids() # You can then turn these into Job instances |
@selwin OK, Got it. Thanks a lot |
Just to complement this, after getting the list of job_ids from the registry, I could use:
to fetch the real job object from the queue. |
@selwin Is PR #391 could get the FinishedQueue? I haven't see any modifications of it could show me to get the FinishedQueue directly.
The text was updated successfully, but these errors were encountered: