Skip to content

Commit

Permalink
updates (#407)
Browse files Browse the repository at this point in the history
  • Loading branch information
austinFlipside authored Dec 9, 2024
1 parent 1ecbe49 commit 6a8f7e0
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 87 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/dbt_run_abi_refresh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ run-name: dbt_run_abi_refresh

on:
workflow_dispatch:
schedule:
# Runs “At minute 0 past every 12th hour.” (see https://crontab.guru)
- cron: '0 */12 * * *'
branches:
- "main"

env:
DBT_PROFILES_DIR: ./
Expand Down Expand Up @@ -41,9 +40,11 @@ jobs:
run: |
pip install -r requirements.txt
dbt deps
- name: Run DBT Jobs
- name: Update ABI models
run: |
dbt run -m "polygon_models,tag:abis"


- name: Kick off decoded logs history, if there are new ABIs from users
run: |
dbt run-operation run_decoded_logs_history

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/dbt_test_tasks.yml

This file was deleted.

9 changes: 4 additions & 5 deletions data/github_actions__workflows.csv
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
workflow_name,workflow_schedule
dbt_run_scheduled_non_realtime,"5,35 * * * *"
dbt_run_scheduled_non_realtime,"5 * * * *"
dbt_run_streamline_chainhead,"25,55 * * * *"
dbt_run_streamline_decoder,"15,45 * * * *"
dbt_run_scheduled_curated,"20 * * * *"
dbt_run_streamline_decoder,"15 * * * *"
dbt_run_scheduled_curated,"20 */6 * * *"
dbt_test_intraday,"20 */4 * * *"
dbt_test_tasks,"0 * * * *"
dbt_run_streamline_decoded_logs_history,"24 14 * * 6"
dbt_run_scheduled_decoded_logs_history_user_abis,"39 23 * * *"
dbt_run_abi_refresh,"29 23 * * *"
4 changes: 2 additions & 2 deletions models/bronze/api_udf/bronze_api__contract_abis.sql
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ FROM
{% endif %}
order by total_interaction_count desc
LIMIT
50
400
), all_contracts AS (
SELECT
contract_address
Expand All @@ -48,7 +48,7 @@ row_nos AS (
FROM
all_contracts
),
batched AS ({% for item in range(151) %}
batched AS ({% for item in range(501) %}
SELECT
rn.contract_address, live.udf_api('GET', CONCAT('https://api.polygonscan.com/api?module=contract&action=getabi&address=', rn.contract_address, '&apikey={poly_key}'),{},{}, 'EXPLORER') AS abi_data, SYSDATE() AS _inserted_timestamp
FROM
Expand Down

0 comments on commit 6a8f7e0

Please sign in to comment.