Skip to content

Commit

Permalink
Add infinite PG timeout to migrations (#4216)
Browse files Browse the repository at this point in the history
* Add infinite PG timeout to migrations

* Add timeout to job templates
  • Loading branch information
zwolf authored Jun 21, 2023
1 parent 82762e7 commit 889e845
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kubernetes/db-migrate-production.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ spec:
- name: panoptes-migrate-db-production
image: ghcr.io/zooniverse/panoptes:__IMAGE_TAG__
command: ["/rails_app/migrate.sh"]
env:
- name: PG_STATEMENT_TIMEOUT
value: '0'
envFrom:
- secretRef:
name: panoptes-common-env-vars
Expand Down
3 changes: 3 additions & 0 deletions kubernetes/db-migrate-staging.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ spec:
- name: panoptes-migrate-db-staging
image: ghcr.io/zooniverse/panoptes:__IMAGE_TAG__
command: ["/rails_app/migrate.sh"]
env:
- name: PG_STATEMENT_TIMEOUT
value: '0'
envFrom:
- secretRef:
name: panoptes-common-env-vars
Expand Down
3 changes: 3 additions & 0 deletions kubernetes/job-task-production.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ spec:
- name: panoptes-rake-task-production
image: ghcr.io/zooniverse/panoptes:__IMAGE_TAG__
command: ["bundle", "exec", "rake", __RAKE_TASK_NAME__]
env:
- name: PG_STATEMENT_TIMEOUT
value: '0'
envFrom:
- secretRef:
name: panoptes-common-env-vars
Expand Down
3 changes: 3 additions & 0 deletions kubernetes/job-task-staging.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ spec:
- name: panoptes-rake-task-staging
image: ghcr.io/zooniverse/panoptes:__IMAGE_TAG__
command: ["bundle", "exec", "rake", __RAKE_TASK_NAME__]
env:
- name: PG_STATEMENT_TIMEOUT
value: '0'
envFrom:
- secretRef:
name: panoptes-common-env-vars
Expand Down

0 comments on commit 889e845

Please sign in to comment.