Skip to content

Commit b3ae423

Browse files
committed
Reduced the number of retries on the pmtiles queues.
1 parent 5b95952 commit b3ae423

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

infra/batch/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,11 +262,11 @@ resource "google_cloud_tasks_queue" "pmtiles_builder_task_queue" {
262262
}
263263

264264
retry_config {
265-
# This will make the cloud task retry for ~1 hour
266-
max_attempts = 31
265+
# Retries span ~4 minutes: initial try + 2 retries, each 120s apart; total wait ≈ 240s plus processing time
266+
max_attempts = 3
267267
min_backoff = "120s"
268268
max_backoff = "120s"
269-
max_doublings = 2
269+
max_doublings = 2 # Moot here since min_backoff == max_backoff
270270
}
271271
}
272272

infra/functions-python/main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,11 +1158,11 @@ resource "google_cloud_tasks_queue" "pmtiles_builder_task_queue" {
11581158
}
11591159

11601160
retry_config {
1161-
# This will make the cloud task retry for ~1 hour
1162-
max_attempts = 31
1161+
# Retries span ~4 minutes: initial try + 2 retries, each 120s apart; total wait ≈ 240s plus processing time
1162+
max_attempts = 3
11631163
min_backoff = "120s"
11641164
max_backoff = "120s"
1165-
max_doublings = 2
1165+
max_doublings = 2 # Moot here since min_backoff == max_backoff
11661166
}
11671167
}
11681168

0 commit comments

Comments
 (0)