diff --git a/.github/workflows/dbt_run_operation_reorg.yml b/.github/workflows/dbt_run_operation_reorg.yml index 2c566fe..a4cedb6 100644 --- a/.github/workflows/dbt_run_operation_reorg.yml +++ b/.github/workflows/dbt_run_operation_reorg.yml @@ -4,8 +4,8 @@ run-name: dbt_run_operation_reorg on: workflow_dispatch: schedule: - # Runs at minute 20 every 8 hours (see https://crontab.guru) - - cron: '20 */8 * * *' + # Runs at minute 20 once per week on Monday (see https://crontab.guru) + - cron: '20 0 * * 1' env: DBT_PROFILES_DIR: ./ @@ -51,4 +51,4 @@ jobs: - name: Execute block_reorg macro run: | - dbt run-operation fsc_utils.block_reorg --args "{reorg_model_list: '${{ steps.list_models.outputs.model_list }}', hours: '12'}" && awk '/SQL status/ {print; next} /DELETE FROM/{getline; print} /\/\* {/ {print}' logs/dbt.log \ No newline at end of file + dbt run-operation fsc_utils.block_reorg --args "{reorg_model_list: '${{ steps.list_models.outputs.model_list }}', hours: '169'}" && awk '/SQL status/ {print; next} /DELETE FROM/{getline; print} /\/\* {/ {print}' logs/dbt.log \ No newline at end of file