Skip to content

Commit

Permalink
Fixed invalid type usage in get_rabbit_channel and `close_rabbit_ch…
Browse files Browse the repository at this point in the history
…annel` (#2280)
  • Loading branch information
ammar92 authored and dekkers committed Jan 8, 2024
1 parent b359f1c commit d7cb589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions octopoes/octopoes/tasks/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@

@worker_process_shutdown.connect
def shutdown_worker(**kwargs):
close_rabbit_channel(settings.queue_uri)
close_rabbit_channel(str(settings.queue_uri))


@worker_process_init.connect
def init_worker(**kwargs):
"""Set up one RabbitMQ connection and channel on worker startup"""
get_rabbit_channel(settings.queue_uri)
get_rabbit_channel(str(settings.queue_uri))


log = get_task_logger(__name__)
Expand Down

0 comments on commit d7cb589

Please sign in to comment.