From d259f4602fe72e0e07f1483637ee7561fb7a29c6 Mon Sep 17 00:00:00 2001 From: Matt Romano <42412983+mattromano@users.noreply.github.com> Date: Tue, 19 Nov 2024 16:24:40 -0800 Subject: [PATCH] gha (#314) --- .github/workflows/dbt_run_operation_reorg.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dbt_run_operation_reorg.yml b/.github/workflows/dbt_run_operation_reorg.yml index 0840f251..e18c97f6 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 50 every 8 hours (see https://crontab.guru) - - cron: '50 */8 * * *' + # Runs at minute 50 every Monday (see https://crontab.guru) + - cron: '50 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