Fix automated retries retrying too much (#2037)

This commit is contained in:
ekzyis 2025-03-28 08:10:54 -05:00 committed by GitHub
parent 39dbc891b0
commit a2faa31d49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -481,6 +481,13 @@ const resolvers = {
AND "cancelledAt" < now() - ${`${WALLET_RETRY_AFTER_MS} milliseconds`}::interval
AND "cancelledAt" > now() - ${`${WALLET_RETRY_BEFORE_MS} milliseconds`}::interval
AND "paymentAttempt" < ${WALLET_MAX_RETRIES}
AND (
"actionType" = 'ITEM_CREATE' OR
"actionType" = 'ZAP' OR
"actionType" = 'DOWN_ZAP' OR
"actionType" = 'POLL_VOTE' OR
"actionType" = 'BOOST'
)
ORDER BY id DESC`
}
},