Skip to content

Commit ea86f85

Browse files
authored
fix(ci): queue migrate runs per environment instead of letting them overlap (#9394)
1 parent 2f33ca0 commit ea86f85

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎.github/workflows/migrate.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,14 @@ jobs:
3838
runs-on: ${{ (vars.CI_PROVIDER == '' || vars.CI_PROVIDER == 'blacksmith') && 'blacksmith-4vcpu-ubuntu-2404' || 'ubuntu-latest' }}
3939
# Bulk projection loads and concurrent index builds can outlast ordinary schema changes.
4040
timeout-minutes: 300
41+
# One migrate job per environment at a time, so a manual dispatch queues
42+
# behind a CI run instead of racing it for migrate.ts's advisory lock, which
43+
# gives up after 30 minutes. Job-level because a called workflow evaluates
44+
# workflow-level concurrency with the caller's github context; the group
45+
# must also never equal ci.yml's ci-<ref> group or the two deadlock.
46+
concurrency:
47+
group: migrate-${{ inputs.environment }}
48+
cancel-in-progress: false
4149

4250
steps:
4351
- name: Checkout code

0 commit comments

Comments
 (0)