From 758c4e3a787e72d2d9b7dbf4a300ca70f966744a Mon Sep 17 00:00:00 2001 From: Anthony Volk Date: Fri, 15 May 2026 00:21:36 +0200 Subject: [PATCH 1/3] Increase App Engine resource allocation --- gcp/policyengine_household_api/app.staging.yaml | 4 ++-- gcp/policyengine_household_api/app.yaml | 6 +++--- gcp/policyengine_household_api/start.sh | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/gcp/policyengine_household_api/app.staging.yaml b/gcp/policyengine_household_api/app.staging.yaml index e5446b8e..1e9c01ea 100644 --- a/gcp/policyengine_household_api/app.staging.yaml +++ b/gcp/policyengine_household_api/app.staging.yaml @@ -2,8 +2,8 @@ service: staging runtime: custom env: flex resources: - cpu: 2 - memory_gb: 8 + cpu: 4 + memory_gb: 16 disk_size_gb: 32 automatic_scaling: min_num_instances: 1 diff --git a/gcp/policyengine_household_api/app.yaml b/gcp/policyengine_household_api/app.yaml index ba8a2f74..42340ce4 100644 --- a/gcp/policyengine_household_api/app.yaml +++ b/gcp/policyengine_household_api/app.yaml @@ -1,8 +1,8 @@ runtime: custom env: flex resources: - cpu: 2 - memory_gb: 8 + cpu: 4 + memory_gb: 16 disk_size_gb: 32 automatic_scaling: min_num_instances: 1 @@ -21,4 +21,4 @@ liveness_check: check_interval_sec: 30 timeout_sec: 10 failure_threshold: 5 - success_threshold: 1 \ No newline at end of file + success_threshold: 1 diff --git a/gcp/policyengine_household_api/start.sh b/gcp/policyengine_household_api/start.sh index c91004cf..a08cb813 100644 --- a/gcp/policyengine_household_api/start.sh +++ b/gcp/policyengine_household_api/start.sh @@ -5,4 +5,4 @@ set -e PORT=${PORT:-8080} # Start the API -exec gunicorn -b :$PORT policyengine_household_api.api --timeout 300 --workers 2 \ No newline at end of file +exec gunicorn -b :$PORT policyengine_household_api.api --timeout 300 --workers 4 From 1001ecbb7732935932e8b4dce49c0e286012eeaf Mon Sep 17 00:00:00 2001 From: Anthony Volk Date: Fri, 15 May 2026 00:22:49 +0200 Subject: [PATCH 2/3] Add changelog for GCP resource increase --- changelog.d/1522.changed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/1522.changed.md diff --git a/changelog.d/1522.changed.md b/changelog.d/1522.changed.md new file mode 100644 index 00000000..c408235f --- /dev/null +++ b/changelog.d/1522.changed.md @@ -0,0 +1 @@ +Increased GCP App Engine maintenance deployment resources to 4 CPU, 16GB memory, and 4 Gunicorn workers. From 214cf0f75d2b3b9db995ecd560c522192c702a9b Mon Sep 17 00:00:00 2001 From: Anthony Volk Date: Fri, 15 May 2026 00:29:10 +0200 Subject: [PATCH 3/3] Cancel stale PR workflow runs --- .github/workflows/pr.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index dfb24808..0524eb8d 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -8,8 +8,8 @@ env: PYTHON_VERSION: "3.12" concurrency: - group: household-api-pr - cancel-in-progress: false + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true jobs: lint: