re-enable new schedules

This commit is contained in:
Eric Laurello 2025-07-17 12:16:33 -04:00
parent fb7c72a92a
commit b4e659b352
5 changed files with 21 additions and 13 deletions

View File

@ -6,7 +6,7 @@ on:
branches:
- "main"
schedule:
- cron: '17 * * * *' # Run every 2 hours at 17 minutes past the hour
- cron: '10,40 * * * *' # Run every hour at 10 minutes past the hour
env:
DBT_PROFILES_DIR: "${{ vars.DBT_PROFILES_DIR }}"

View File

@ -6,7 +6,7 @@ on:
branches:
- "main"
schedule:
- cron: '*/20 * * * *' # Run every 20 minutes
- cron: '*/15 * * * *' # Run every 20 minutes
env:
DBT_PROFILES_DIR: "${{ vars.DBT_PROFILES_DIR }}"

View File

@ -94,6 +94,14 @@ vars:
- INTERNAL_DEV
prod:
API_INTEGRATION: AWS_SUI_API_PROD_V2
EXTERNAL_FUNCTION_URI: nqj8j7ln67.execute-api.us-east-1.amazonaws.com/prod/
ROLES:
- AWS_LAMBDA_SUI_API
- INTERNAL_DEV
- DBT_CLOUD_SUI
prod-2xl:
API_INTEGRATION: AWS_SUI_API_PROD_V2
EXTERNAL_FUNCTION_URI: nqj8j7ln67.execute-api.us-east-1.amazonaws.com/prod/
ROLES:

View File

@ -4,7 +4,7 @@
func = 'streamline.udf_bulk_rest_api_v2',
target = "{{this.schema}}.{{this.identifier}}",
params ={ "external_table" :"checkpoints",
"sql_limit" :"2000000",
"sql_limit" :"1000000",
"producer_batch_size" :"200000",
"worker_batch_size" :"50000",
"async_concurrent_requests" :"25",

View File

@ -4,10 +4,10 @@
func = 'streamline.udf_bulk_rest_api_v2',
target = "{{this.schema}}.{{this.identifier}}",
params ={ "external_table" :"transactions",
"sql_limit" :"90000",
"producer_batch_size" :"90000",
"worker_batch_size" :"3000",
"async_concurrent_requests" :"10",
"sql_limit" :"2000000",
"producer_batch_size" :"500000",
"worker_batch_size" :"5000",
"async_concurrent_requests" :"25",
"sql_source" :"{{this.identifier}}",
'exploded_key': '["result"]',
"order_by_column": "checkpoint_number DESC" }
@ -42,7 +42,7 @@ txs AS (
FROM
last_3_days
) #}
),
) {# ,
tx_grouped AS (
SELECT
checkpoint_number,
@ -60,10 +60,10 @@ tx_grouped AS (
checkpoint_number,
block_timestamp,
grp
)
) #}
SELECT
checkpoint_number,
tx_count_in_request,
1 AS tx_count_in_request,
to_char(
block_timestamp,
'YYYY_MM_DD_HH_MI_SS_FF3'
@ -85,10 +85,10 @@ SELECT
'id',
checkpoint_number,
'method',
'sui_multiGetTransactionBlocks',
'sui_getTransactionBlock',
'params',
ARRAY_CONSTRUCT(
tx_param,
tx_digest,
OBJECT_CONSTRUCT(
'showInput',
TRUE,
@ -110,4 +110,4 @@ SELECT
'Vault/prod/sui/quicknode/mainnet'
) AS request
FROM
tx_grouped
txs