Skip to content

Commit

Permalink
Merge pull request #261 from ww24/fix-timeout
Browse files Browse the repository at this point in the history
Fix timeout
  • Loading branch information
ww24 authored Apr 30, 2022
2 parents 612b76a + 290ad9e commit a39abfd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion terraform/cloud_run_linebot.tf
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resource "google_cloud_run_service" "linebot" {
spec {
service_account_name = google_service_account.linebot.email

timeout_seconds = 60
timeout_seconds = 120
containers {
image = local.image

Expand Down
2 changes: 1 addition & 1 deletion terraform/cloud_run_screenshot.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ resource "google_cloud_run_service" "screenshot" {
spec {
service_account_name = google_service_account.screenshot.email

timeout_seconds = 60
timeout_seconds = 120
# set 1 because https://cloud.google.com/run/docs/configuring/cpu#setting
container_concurrency = 1

Expand Down
4 changes: 2 additions & 2 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,13 @@ variable "weather_api" {

variable "weather_api_timeout" {
type = string
default = "60s"
default = "120s"
description = "Weather API timeout"
}

variable "browser_timeout" {
type = string
default = "60s"
default = "90s"
description = "Browser timeout"
}

Expand Down

0 comments on commit a39abfd

Please sign in to comment.