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

fix : 큐로 메시지 전송 시 큐 선언 확인 안하도록 변경 #631 #634

Merged
merged 1 commit into from
Aug 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions backend/AnimatedDrawings/application/task/base_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,8 @@ def on_failure(self, exc, task_id, args, kwargs, einfo):
type='direct',
durable=True)

notification_queue = Queue(name=QueueConfig.NOTIFICATION_QUEUE_NAME,
exchange=notification_exchange,
routing_key=QueueConfig.NOTIFICATION_QUEUE_NAME)

producer.publish(
request_data,
declare=[notification_queue],
exchange=notification_exchange,
content_type='application/json',
routing_key=QueueConfig.NOTIFICATION_QUEUE_NAME,
Expand Down
5 changes: 0 additions & 5 deletions backend/AnimatedDrawings/application/task/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,8 @@ def send_notification(self, _, input_data: dict, filename: str):
type='direct',
durable=True)

queue = Queue(name=QueueConfig.NOTIFICATION_QUEUE_NAME,
exchange=exchange,
routing_key=QueueConfig.NOTIFICATION_QUEUE_NAME)

producer.publish(
request_data,
declare=[queue],
exchange=exchange,
content_type='application/json',
routing_key=QueueConfig.NOTIFICATION_QUEUE_NAME,
Expand Down