Keep failed outbox events retryable
This commit is contained in:
parent
a0f39f58bd
commit
0b6a57dc6c
3 changed files with 23 additions and 1 deletions
|
|
@ -419,7 +419,8 @@ class PostgresUserEngineStore:
|
|||
"""
|
||||
SELECT payload
|
||||
FROM user_engine_outbox_events
|
||||
WHERE claimed_at IS NULL AND delivered_at IS NULL AND failed_at IS NULL
|
||||
WHERE delivered_at IS NULL
|
||||
AND COALESCE(payload->>'dead_lettered_at', '') = ''
|
||||
ORDER BY occurred_at, event_id
|
||||
"""
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue