From 015d0f38356978bace2eac6a67a0e05a338e0c0a Mon Sep 17 00:00:00 2001 From: Towaki Takikawa Date: Sun, 25 Jan 2026 14:05:26 -0800 Subject: [PATCH] Fix idempotency_key conflict in orphan task retry --- .../sqlc/set_orphaned_task_execution_to_lost_and_retry.py | 1 + 1 file changed, 1 insertion(+) diff --git a/hyrex/dispatcher/sqlc/set_orphaned_task_execution_to_lost_and_retry.py b/hyrex/dispatcher/sqlc/set_orphaned_task_execution_to_lost_and_retry.py index 6c05533..c51af0b 100644 --- a/hyrex/dispatcher/sqlc/set_orphaned_task_execution_to_lost_and_retry.py +++ b/hyrex/dispatcher/sqlc/set_orphaned_task_execution_to_lost_and_retry.py @@ -64,6 +64,7 @@ NOW() FROM lost_tasks WHERE attempt_number < max_retries +ON CONFLICT (task_name, idempotency_key) WHERE idempotency_key IS NOT NULL DO NOTHING """