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

Job.__init__() missing 1 required argument: 'connection' error for dependent job #503

Open
ConfusedCoder556 opened this issue Mar 10, 2025 · 1 comment

Comments

@ConfusedCoder556
Copy link

Describe the bug
Job.__init__() missing 1 required argument: 'connection' when I try and view a dependent job.

To Reproduce

q = Queue('high', connection=my_redis_conn)
report_job = q.enqueue(generate_report,  retry=Retry(max=3, interval=[10, 30, 60]))
send_report_job = q.enqueue(send_report,  retry=Retry(max=3, interval=[10, 30, 60]), depends_on=report_job)
  1. Go to RQ dashboard and try view the send_report_job.
  2. See the triggered error on sentry/Flask.

Expected behavior
No error.

Additional context

  • Python Version: 3.11
  • rq==2.1.0
  • rq-dashboard==0.8.2.2
  • sentry-sdk[rq]==2.13.0

It seems this error is handled in #500 but this was never released as a new package available on pip.

@ConfusedCoder556
Copy link
Author

Would be nice to have this resolved as well in the next version: #501

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

1 participant