diff --git a/.github/workflows/dbt_run_operation_reorg.yml b/.github/workflows/dbt_run_operation_reorg.yml index 34a36fe..162fab7 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 30 every 8 hours (see https://crontab.guru) - - cron: '30 */8 * * *' + # Runs at minute 30 on Monday at 00:00 UTC (see https://crontab.guru) + - cron: '30 0 * * 1' env: DBT_PROFILES_DIR: ./ @@ -51,5 +51,5 @@ 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 + 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