From 40617d386352fe3a4cf9766c1101ed1389a1e741 Mon Sep 17 00:00:00 2001 From: Nicholas Kumia Date: Fri, 1 Jul 2022 15:20:32 -0400 Subject: [PATCH] new: turn off restarts/harvesting --- .github/workflows/restart.yml | 70 ++++++++++++------------- .github/workflows/run-harvest-check.yml | 42 +++++++-------- vars.staging.yml | 4 +- 3 files changed, 58 insertions(+), 58 deletions(-) diff --git a/.github/workflows/restart.yml b/.github/workflows/restart.yml index a27e92d5..0ae1bf69 100644 --- a/.github/workflows/restart.yml +++ b/.github/workflows/restart.yml @@ -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) diff --git a/.github/workflows/run-harvest-check.yml b/.github/workflows/run-harvest-check.yml index 5cdb193c..b075355f 100644 --- a/.github/workflows/run-harvest-check.yml +++ b/.github/workflows/run-harvest-check.yml @@ -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 diff --git a/vars.staging.yml b/vars.staging.yml index acbfed18..31c9e2da 100644 --- a/vars.staging.yml +++ b/vars.staging.yml @@ -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