Skip to content
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

Unable to get a single queued job by id? #372

Closed
VincentRPS opened this issue Dec 8, 2022 · 1 comment
Closed

Unable to get a single queued job by id? #372

VincentRPS opened this issue Dec 8, 2022 · 1 comment

Comments

@VincentRPS
Copy link

From the docs, it seems like you cannot get a single job from it's id alone? Unless I'm missing something, adding a feature for this would be perferable.

@JonasKs
Copy link
Collaborator

JonasKs commented Dec 8, 2022

You can, using Job and your redis connection. Documented here.

await arq_redis.enqueue_job('foobar', 1, 2, c=3, _job_id='my_job')
j = Job(job_id='my_job', redis=arq_redis)
assert isinstance(j, Job)
assert JobStatus.queued == await j.status()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants