re-add to scheduler

This commit is contained in:
desmond-hui 2024-06-26 19:25:21 -07:00
parent c036ccc023
commit 58f9b127dd

View File

@ -11,6 +11,7 @@
'{{this.identifier}}',
'ON EQUALITY(tx_id, swapper, from_mint, to_mint)'
),
tags = ['scheduled_non_core'],
) }}
{% if execute %}
@ -32,12 +33,6 @@
FROM
{{ this }}
)
AND _inserted_timestamp < (
SELECT
MAX(_inserted_timestamp) + INTERVAL '1 day'
FROM
{{ this }}
)
{% else %}
AND _inserted_timestamp::date >= '2024-06-12'
AND _inserted_timestamp::date < '2024-06-14'
@ -90,10 +85,11 @@
program_id = 'JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4'
AND event_type = 'SwapEvent'
AND succeeded
{% if is_incremental() %} /* need to always keep the upper bound (if there is one) to prevent time gaps in incremental loading */
/* need to always keep the upper bound (if there is one) to prevent time gaps in incremental loading */
{% if is_incremental() %}
AND _inserted_timestamp < (
SELECT
MAX(_inserted_timestamp) + INTERVAL '1 day'
MAX(_inserted_timestamp) + INTERVAL '100 day'
FROM
{{ this }}
)