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

resolve_connection is deprecated #304

Closed
soulseekah opened this issue Jan 4, 2024 · 1 comment
Closed

resolve_connection is deprecated #304

soulseekah opened this issue Jan 4, 2024 · 1 comment

Comments

@soulseekah
Copy link

tasks.py:20: in <module>
    scheduler = rq_scheduler.Scheduler(queue=queue, connection=queue.connection)
/usr/local/lib/python3.10/site-packages/rq_scheduler/scheduler.py:34: in __init__
    self.connection = resolve_connection(connection)
/usr/local/lib/python3.10/site-packages/rq/connections.py:108: in resolve_connection
    warnings.warn(
E   DeprecationWarning: The `resolve_connection` function is deprecated. Pass the `connection` explicitly instead.
rq==1.15.1
rq-scheduler==0.13.1
soulseekah added a commit to soulseekah/rq-scheduler that referenced this issue Jan 4, 2024
The Connection context manager in rq is deprecated.
When a connection is explicitly passed to the Scheduler
avoid using the manager and triggering a warning
soulseekah added a commit to soulseekah/rq-scheduler that referenced this issue Jan 4, 2024
The Connection context manager in rq is deprecated.
When a connection is explicitly passed to the Scheduler
avoid using the manager and triggering a warning.
@soulseekah
Copy link
Author

Fixed in dfa1188

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

Successfully merging a pull request may close this issue.

1 participant