update daily run and balances schedule

This commit is contained in:
tarikceric 2025-10-01 12:08:58 -07:00
parent 24c27d9bd6
commit 437dcebde2
9 changed files with 11 additions and 10 deletions

View File

@ -3,8 +3,8 @@ run-name: dbt_run_scheduled_daily
on:
schedule:
# Runs 00:35 daily (see https://crontab.guru)
- cron: '35 0 * * *'
# Runs 01:35 daily (see https://crontab.guru)
- cron: '35 1 * * *'
env:
DBT_PROFILES_DIR: "${{ vars.DBT_PROFILES_DIR }}"
@ -46,6 +46,7 @@ jobs:
dbt run -s models/silver/validator/silver__snapshot_validators_app_data.sql models/silver/validator/silver__snapshot_vote_accounts.sql models/silver/validator/silver__snapshot_vote_accounts_extended_stats.sql
dbt run -s "solana_models,tag:nft_api"
dbt run -s "solana_models,tag:daily"
dbt run -s "solana_models,tag:daily_balances"
notify-failure:
needs: [run_dbt_jobs]

View File

@ -5,7 +5,7 @@
cluster_by = ['block_timestamp::DATE','modified_timestamp::DATE'],
merge_exclude_columns = ["inserted_timestamp"],
post_hook = enable_search_optimization('{{this.schema}}', '{{this.identifier}}', 'ON EQUALITY(tx_id, account_address)'),
tags = ['scheduled_non_core']
tags = ['scheduled_non_core','daily_balances']
) }}
SELECT

View File

@ -5,7 +5,7 @@
cluster_by = ['balance_date'],
merge_exclude_columns = ["inserted_timestamp"],
post_hook = enable_search_optimization('{{this.schema}}','{{this.identifier}}','ON EQUALITY(account)'),
tags = ['daily']
tags = ['daily_balances']
) }}
WITH date_spine AS (

View File

@ -5,7 +5,7 @@
cluster_by = ['block_timestamp::DATE','modified_timestamp::DATE'],
merge_exclude_columns = ["inserted_timestamp"],
post_hook = enable_search_optimization('{{this.schema}}','{{this.identifier}}','ON EQUALITY(tx_id, account_address, fact_token_balances_id)'),
tags = ['scheduled_non_core']
tags = ['scheduled_non_core','daily_balances']
) }}
SELECT

View File

@ -5,7 +5,7 @@
cluster_by = ['balance_date'],
merge_exclude_columns = ["inserted_timestamp"],
post_hook = enable_search_optimization('{{this.schema}}','{{this.identifier}}','ON EQUALITY(account, mint)'),
tags = ['daily']
tags = ['daily_balances']
) }}
WITH date_spine AS (

View File

@ -5,7 +5,7 @@
unique_key = ["account_address"],
cluster_by = ["round(start_block_id,-5)"],
post_hook = enable_search_optimization('{{this.schema}}','{{this.identifier}}','ON EQUALITY(account_address, owner)'),
tags = ['scheduled_non_core']
tags = ['scheduled_non_core','daily_balances']
) }}

View File

@ -4,7 +4,7 @@
incremental_predicates = ["dynamic_range_predicate", "block_timestamp::date"],
cluster_by = ['block_timestamp::DATE','_inserted_timestamp::DATE'],
full_refresh = false,
tags = ['scheduled_non_core'],
tags = ['scheduled_non_core','daily_balances'],
) }}
with base_events as (

View File

@ -5,7 +5,7 @@
cluster_by = ['block_timestamp::DATE','modified_timestamp::DATE'],
full_refresh = false,
merge_exclude_columns = ["inserted_timestamp"],
tags = ['scheduled_non_core']
tags = ['scheduled_non_core','daily_balances']
) }}
WITH balances AS (

View File

@ -5,7 +5,7 @@
cluster_by = ['block_timestamp::DATE','modified_timestamp::DATE'],
full_refresh = false,
merge_exclude_columns = ["inserted_timestamp"],
tags = ['scheduled_non_core']
tags = ['scheduled_non_core','daily_balances']
) }}
WITH pre AS (