add retries to order

This commit is contained in:
2026-01-15 19:58:57 -03:00
parent ca52384b53
commit 466936acf4
9 changed files with 402 additions and 273 deletions

View File

@@ -62,5 +62,13 @@ def payment_retries(
},
cond_expr='attribute_not_exists(sk)',
)
transact.update(
key=KeyPair(order_id, 'TRANSACTION#STATS'),
update_expr='SET updated_at = :now REMOVE last_attempt_succeeded',
expr_attr_values={
':now': now(),
},
cond_expr='attribute_exists(sk)',
)
return JSONResponse(status_code=HTTPStatus.CREATED)