We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 525b965 commit 0c7d424Copy full SHA for 0c7d424
2 files changed
infra/terraform/cloud_run.tf
@@ -64,8 +64,8 @@ resource "google_cloud_run_v2_job" "checker" {
64
location = var.region
65
66
template {
67
- task_count = var.checker_job_task_count
68
- parallelism = var.checker_job_task_count
+ task_count = var.checker_job_task_count[terraform.workspace]
+ parallelism = var.checker_job_task_count[terraform.workspace]
69
70
71
service_account = google_service_account.checker_runtime.email
infra/terraform/variables.tf
@@ -146,9 +146,14 @@ variable "checker_concurrency" {
146
default = 10
147
}
148
149
+
150
151
variable "checker_job_task_count" {
- type = number
- default = 4
152
+ type = map(string)
153
+ default = {
154
+ dev = 1
155
+ prod = 2
156
+ }
157
158
159
variable "api_cache_enabled" {
0 commit comments