update frequency and add test (#369)

* update frequency and add test

* adjust schedule
This commit is contained in:
tarikceric 2023-10-19 09:54:47 -07:00 committed by GitHub
parent ef65497970
commit a1e73a1c91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -4,8 +4,8 @@ run-name: dbt_run_helius_metadata
on:
workflow_dispatch:
schedule:
# Runs "every 7th minute" (see https://crontab.guru)
- cron: '*/7 * * * *'
# Runs "at minute 0 past hour 3 and 15" (see https://crontab.guru)
- cron: '0 3,15 * * *'
env:
DBT_PROFILES_DIR: "${{ secrets.DBT_PROFILES_DIR }}"
@ -42,6 +42,5 @@ jobs:
- name: Run DBT Jobs
run: |
dbt run -s models/silver/metadata/helius/silver__helius_nft_requests.sql models/bronze/bronze_api/bronze_api__helius_nft_metadata.sql
dbt run -s models/bronze/bronze_api/bronze_api__helius_nft_metadata.sql

View File

@ -7,6 +7,10 @@ models:
description: "Raw response data"
- name: MAX_MINT_EVENT_INSERTED_TIMESTAMP
description: "The latest inserted timestamp for the mints passed to a call"
tests:
- dbt_expectations.expect_row_values_to_have_recent_data:
datepart: day
interval: 3
- name: _INSERTED_TIMESTAMP
description: "{{ doc('_inserted_timestamp') }}"
tests: