Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off restarts/harvesting (staging) #484

Merged
merged 1 commit into from
Jul 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 35 additions & 35 deletions .github/workflows/restart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,41 @@ on:
- cron: '11/30 * * * *'

jobs:
restart-staging:
name: restart (staging)
environment: staging
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: restart
uses: cloud-gov/cg-cli-tools@main
with:
command: cf restart catalog --strategy rolling
cf_org: gsa-datagov
cf_space: staging
cf_username: ${{secrets.CF_SERVICE_USER}}
cf_password: ${{secrets.CF_SERVICE_AUTH}}
# - name: restart gather
# uses: cloud-gov/cg-cli-tools@main
# with:
# command: cf restart catalog-gather
# cf_org: gsa-datagov
# cf_space: staging
# cf_username: ${{secrets.CF_SERVICE_USER}}
# cf_password: ${{secrets.CF_SERVICE_AUTH}}
- name: restart fetch
uses: cloud-gov/cg-cli-tools@main
with:
command: cf restart catalog-fetch
cf_org: gsa-datagov
cf_space: staging
cf_username: ${{secrets.CF_SERVICE_USER}}
cf_password: ${{secrets.CF_SERVICE_AUTH}}
- name: smoke test
run: |
sleep 10
curl --fail --silent https://catalog-stage-datagov.app.cloud.gov/api/action/status_show?$(date +%s)
# restart-staging:
# name: restart (staging)
# environment: staging
# runs-on: ubuntu-latest
# steps:
# - name: checkout
# uses: actions/checkout@v2
# - name: restart
# uses: cloud-gov/cg-cli-tools@main
# with:
# command: cf restart catalog --strategy rolling
# cf_org: gsa-datagov
# cf_space: staging
# cf_username: ${{secrets.CF_SERVICE_USER}}
# cf_password: ${{secrets.CF_SERVICE_AUTH}}
# # - name: restart gather
# # uses: cloud-gov/cg-cli-tools@main
# # with:
# # command: cf restart catalog-gather
# # cf_org: gsa-datagov
# # cf_space: staging
# # cf_username: ${{secrets.CF_SERVICE_USER}}
# # cf_password: ${{secrets.CF_SERVICE_AUTH}}
# - name: restart fetch
# uses: cloud-gov/cg-cli-tools@main
# with:
# command: cf restart catalog-fetch
# cf_org: gsa-datagov
# cf_space: staging
# cf_username: ${{secrets.CF_SERVICE_USER}}
# cf_password: ${{secrets.CF_SERVICE_AUTH}}
# - name: smoke test
# run: |
# sleep 10
# curl --fail --silent https://catalog-stage-datagov.app.cloud.gov/api/action/status_show?$(date +%s)

restart-prod:
name: restart (prod)
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/run-harvest-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ on:

jobs:
# # Note: run this action if the harvesters need to be commented out
pause:
name: Stop Harvesting
runs-on: ubuntu-latest
steps:
- name: Pausing Harvesters most likely for re-indexing
run: echo "hi"
harvest-run-staging:
name: harvest-run (staging)
environment: staging
runs-on: ubuntu-latest
steps:
- name: harvest-run
# pinned to cf7 until --wait is available for run-task on cf8...
uses: cloud-gov/cg-cli-tools@main
with:
command: |
cf run-task catalog --command 'ckan harvester run' --name 'harvester-check-completed (CI)' -k 2G
cf_org: gsa-datagov
cf_space: staging
cf_username: ${{secrets.CF_SERVICE_USER}}
cf_password: ${{secrets.CF_SERVICE_AUTH}}
# pause:
# name: Stop Harvesting
# runs-on: ubuntu-latest
# steps:
# - name: Pausing Harvesters most likely for re-indexing
# run: echo "hi"
# harvest-run-staging:
# name: harvest-run (staging)
# environment: staging
# runs-on: ubuntu-latest
# steps:
# - name: harvest-run
# # pinned to cf7 until --wait is available for run-task on cf8...
# uses: cloud-gov/cg-cli-tools@main
# with:
# command: |
# cf run-task catalog --command 'ckan harvester run' --name 'harvester-check-completed (CI)' -k 2G
# cf_org: gsa-datagov
# cf_space: staging
# cf_username: ${{secrets.CF_SERVICE_USER}}
# cf_password: ${{secrets.CF_SERVICE_AUTH}}
harvest-run-prod:
name: harvest-run (prod)
environment: production
Expand Down
4 changes: 2 additions & 2 deletions vars.staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ ckanext__saml2auth__entity_id: urn:gov:gsa:SAML:2.0.profiles:sp:sso:gsa:datagov-
ckanext__saml2auth__idp_metadata__local_path: ckan/setup/login.sandbox.idp.xml

web-instances: 2
gather-instances: 1
fetch-instances: 4
gather-instances: 0
fetch-instances: 0
memory_quota: 850M
gather_memory_quota: 3G

Expand Down