mirror of
https://github.com/FlipsideCrypto/sui-models.git
synced 2026-02-06 09:26:50 +00:00
re-enable new schedules
This commit is contained in:
parent
fb7c72a92a
commit
b4e659b352
@ -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 }}"
|
||||
|
||||
@ -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 }}"
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user