mirror of
https://github.com/FlipsideCrypto/solana-models.git
synced 2026-02-06 09:41:44 +00:00
update daily run and balances schedule
This commit is contained in:
parent
24c27d9bd6
commit
437dcebde2
5
.github/workflows/dbt_run_daily.yml
vendored
5
.github/workflows/dbt_run_daily.yml
vendored
@ -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]
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 (
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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 (
|
||||
|
||||
@ -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']
|
||||
) }}
|
||||
|
||||
|
||||
|
||||
@ -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 (
|
||||
|
||||
@ -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 (
|
||||
|
||||
@ -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 (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user