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 run redis.queued_jobs(). Job not found error. #466

Open
samuel-108 opened this issue Jun 23, 2024 · 1 comment
Open

Unable to run redis.queued_jobs(). Job not found error. #466

samuel-108 opened this issue Jun 23, 2024 · 1 comment

Comments

@samuel-108
Copy link

The redis.queued_jobs() query is showing the job not found error.

2024-06-23T04:27:49.223303340Z ERROR:root:Error occurred: job "arq:job:23aaa17974cb44b6997e5894336c9bc7" not found
2024-06-23T04:27:49.223343548Z Traceback (most recent call last):
2024-06-23T04:27:49.223356845Z File "/app/src/api/task_admin.py", line 137, in requeue_token_tasks
2024-06-23T04:27:49.223362776Z all_jobs = await redis.queued_jobs()
2024-06-23T04:27:49.223368103Z File "/usr/local/lib/python3.10/site-packages/arq/connections.py", line 217, in queued_jobs
2024-06-23T04:27:49.223373875Z return await asyncio.gather(*[self._get_job_def(job_id, int(score)) for job_id, score in jobs])
2024-06-23T04:27:49.223379384Z File "/usr/local/lib/python3.10/site-packages/arq/connections.py", line 204, in _get_job_def
2024-06-23T04:27:49.223385012Z raise RuntimeError(f'job "{key}" not found')
2024-06-23T04:27:49.223390934Z RuntimeError: job "arq:job:23aaa17974cb44b6997e5894336c9bc7" not found

@jianyuan
Copy link

jianyuan commented Sep 5, 2024

I believe this happens when we list a job and one or more jobs expire as soon as we list all the keys.

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