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

feat(be): add priority on submisison queue #2305

Merged
merged 8 commits into from
Jan 22, 2025
Prev Previous commit
Next Next commit
fix: add max-priority arguments in submission queue
jspark2000 committed Jan 15, 2025
commit 581a88bd1fc5c6c039a60d9fc41d049dab8d55d2
3 changes: 2 additions & 1 deletion apps/infra/production/codedang/message_queue.tf
Original file line number Diff line number Diff line change
@@ -37,7 +37,8 @@ resource "rabbitmq_queue" "submission_queue" {
vhost = rabbitmq_permissions.vh_perm.vhost

settings {
durable = true
durable = true
arguments_json = var.rabbitmq_arguments
}
}

8 changes: 8 additions & 0 deletions apps/infra/production/codedang/variables.tf
Original file line number Diff line number Diff line change
@@ -9,6 +9,14 @@ variable "rabbitmq_port" {
sensitive = true
}

variable "rabbitmq_arguments" {
default = <<EOF
{
"x-max-priority": 3
}
EOF
}

# TODO: description 넣고 공통부분은 object로 처리
variable "public_subnet1" { sensitive = true }
variable "public_subnet2" { sensitive = true }