dexalot-tasks (#331)

* temp changes

* wfs

* remove non realtime job

* package
This commit is contained in:
drethereum 2025-05-13 12:01:13 -06:00 committed by GitHub
parent 5e4492c211
commit 104efeda93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
12 changed files with 13 additions and 17 deletions

View File

@ -1,12 +1,10 @@
name: dbt_run_streamline_dexalot_non_realtime
run-name: dbt_run_streamline_dexalot_non_realtime
name: dbt_run_scheduled_dexalot_main
run-name: dbt_run_scheduled_dexalot_main
on:
workflow_dispatch:
branches:
- "main"
schedule:
- cron: '5 * * * *'
env:
DBT_PROFILES_DIR: ./
@ -29,5 +27,5 @@ jobs:
with:
command_name: Run Chainhead Models
command: |
dbt run -m "avalanche_models,tag:dexalot_non_realtime"
dbt run -m "avalanche_models,tag:dexalot_main"
secrets: inherit

View File

@ -5,8 +5,6 @@ on:
workflow_dispatch:
branches:
- "main"
schedule:
- cron: '50 * * * *'
env:
DBT_PROFILES_DIR: ./

View File

@ -5,7 +5,7 @@
merge_exclude_columns = ["inserted_timestamp"],
cluster_by = "block_timestamp::date",
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(hash,parent_hash,receipts_root,sha3_uncles)",
tags = ['dexalot_non_realtime']
tags = ['dexalot_main']
) }}
SELECT

View File

@ -4,7 +4,7 @@
unique_key = "fact_event_logs_id",
cluster_by = "block_timestamp::date",
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION",
tags = ['dexalot_non_realtime']
tags = ['dexalot_main']
) }}
SELECT

View File

@ -5,7 +5,7 @@
cluster_by = "block_timestamp::date",
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_number,tx_hash,from_address,to_address,trace_address,type), SUBSTRING(input,output,type,trace_address,error_reason,revert_reason)",
full_refresh = false,
tags = ['dexalot_non_realtime']
tags = ['dexalot_main']
) }}
WITH silver_traces AS (

View File

@ -4,7 +4,7 @@
incremental_strategy = 'delete+insert',
cluster_by = "block_timestamp::date",
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION",
tags = ['dexalot_non_realtime']
tags = ['dexalot_main']
) }}
SELECT

View File

@ -4,7 +4,7 @@
unique_key = "block_number",
cluster_by = "block_timestamp::date",
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(hash,parent_hash,receipts_root,sha3_uncles,state_root,transactions_root)",
tags = ['dexalot_non_realtime','streamline_dexalot_realtime']
tags = ['dexalot_main','streamline_dexalot_realtime']
) }}
SELECT

View File

@ -4,7 +4,7 @@
unique_key = "block_number",
cluster_by = "block_timestamp::date, _inserted_timestamp::date",
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION",
tags = ['dexalot_non_realtime']
tags = ['dexalot_main']
) }}
WITH base AS (

View File

@ -5,7 +5,7 @@
unique_key = "block_number",
cluster_by = "ROUND(block_number, -3)",
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION ON EQUALITY(block_hash, tx_hash, from_address, to_address)",
tags = ['dexalot_non_realtime']
tags = ['dexalot_main']
) }}
WITH base AS (

View File

@ -5,7 +5,7 @@
unique_key = "block_number",
cluster_by = ['modified_timestamp::DATE','partition_key'],
full_refresh = false,
tags = ['dexalot_non_realtime']
tags = ['dexalot_main']
) }}
WITH bronze_traces AS (

View File

@ -5,7 +5,7 @@
unique_key = "block_number",
cluster_by = "block_timestamp::date, _inserted_timestamp::date",
post_hook = "ALTER TABLE {{ this }} ADD SEARCH OPTIMIZATION",
tags = ['dexalot_non_realtime']
tags = ['dexalot_main']
) }}
WITH base AS (

View File

@ -1,3 +1,3 @@
packages:
- git: https://github.com/FlipsideCrypto/fsc-evm.git
revision: v4.0.0-beta.65
revision: v4.0.0-beta.66