mirror of
https://github.com/FlipsideCrypto/sei-models.git
synced 2026-02-06 20:47:10 +00:00
28 lines
801 B
SQL
28 lines
801 B
SQL
{% macro run_decoded_logs_history() %}
|
|
|
|
{% set check_for_new_user_abis_query %}
|
|
select 1
|
|
from {{ ref('silver_evm__user_verified_abis') }}
|
|
where _inserted_timestamp::date = sysdate()::date
|
|
{% endset %}
|
|
|
|
{% set results = run_query(check_for_new_user_abis_query) %}
|
|
|
|
{% if execute %}
|
|
{% set new_user_abis = results.columns[0].values()[0] %}
|
|
|
|
{% if new_user_abis %}
|
|
{% set invoke_workflow_query %}
|
|
SELECT
|
|
github_actions.workflow_dispatches(
|
|
'FlipsideCrypto',
|
|
'sei-models',
|
|
'dbt_run_streamline_decoded_logs_history.yml',
|
|
NULL
|
|
)
|
|
{% endset %}
|
|
|
|
{% do run_query(invoke_workflow_query) %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endmacro %} |