Rewards points batch (#405)

* chg batch size

* add website and org id to minting assets

* upd test config

* typo

* worker batch size
This commit is contained in:
Jack Forgash 2025-02-06 10:12:14 -07:00 committed by GitHub
parent 09f9f9cb1e
commit f0d6462111
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 7 deletions

View File

@ -17,7 +17,6 @@ models:
- name: ITEM_ID
tests:
- not_null
- unique
- name: CREATED_AT
tests:

View File

@ -17,7 +17,6 @@ models:
- name: BOXES
description: "The number of boxes owned by the account at the time of the request"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
@ -28,7 +27,6 @@ models:
- name: KEYS
description: "The number of keys owned by the account at the time of the request"
tests:
- not_null
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER
@ -36,7 +34,9 @@ models:
- name: POINTS
description: "The number of points accrued by the account at the time of the request"
tests:
- not_null
- not_null:
where:
request_date > '2025-02-07'
- dbt_expectations.expect_column_values_to_be_in_type_list:
column_type_list:
- NUMBER

View File

@ -6,8 +6,8 @@
params = {
"external_table": "reward_points",
"sql_limit": "32000",
"producer_batch_size": "8000",
"worker_batch_size": "1600",
"producer_batch_size": "4000",
"worker_batch_size": "1000",
"sql_source": "{{this.identifier}}"
}
)

View File

@ -21,7 +21,7 @@ SELECT
DATE_PART('EPOCH', SYSDATE()) :: INTEGER AS partition_key,
{{ target.database }}.live.udf_api(
'GET',
'{Service}/api/minting/assets' || '?limit=' || api_limit,
'{Service}/api/minting/assets' || '?organizationId=' || {organization_id} || '&websiteId=' || {website_id} || '&limit=' || api_limit,
{ 'x-api-key': '{Authentication}' },
{},
'Vault/prod/flow/snag-api'