concurrency-fix #15

Merged
jonas merged 24 commits from concurrency-fix into main 2025-12-01 13:34:35 +00:00
Showing only changes of commit c72c7d7969 - Show all commits

View File

@@ -313,9 +313,10 @@ class TestWebhookReprocessingNeverBlocksStartup:
hotel_id="HOTEL123", hotel_id="HOTEL123",
payload_json={"data": {"invalid": "data"}}, # Missing required fields payload_json={"data": {"invalid": "data"}}, # Missing required fields
status=WebhookStatus.PROCESSING, status=WebhookStatus.PROCESSING,
received_at=datetime.now(UTC), created_at=datetime.now(UTC),
payload_hash="invalidhash" # Add a dummy payload_hash to avoid integrity error
) )
session.add(stuck_webhook) session.add(stuck_webhook) ## Cannot add the stuck webhook. Integrity Error payload_hash is missing
await session.commit() await session.commit()
# This should NOT raise an exception - it should log and continue # This should NOT raise an exception - it should log and continue