This commit is contained in:
Matt Romano 2024-11-19 16:24:40 -08:00 committed by GitHub
parent 0e33c54341
commit d259f4602f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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