Menu

1 / 4

What Happens When a Django Worker Dies After the Write?

DEV Community: django·Artem·1 day ago
#5Jm0lpQS
#devtodjango#devto#dev#worker#receipt
Long article (1212 words) — no AI summary yet.
Reading 0:00
15s threshold

By Artem Alimpiev

In one recorded run of my AI Agents Platform, PostgreSQL held two facts about the same support ticket. The ticket destination had saved it. The workflow still had save_ticket marked unfinished. Then the worker died.

A replacement worker eventually sent the same HTTP request. The destination logged a second attempt and returned the first receipt. That outcome depends on a small design decision about who owns the write. Here’s how it works in the Django backend I built, starting with the person who gets to decide which category goes on the ticket. Project on GitHub

Who gets to say “save”?

One of the fictional tickets in the demo has the subject “No puedo entrar para consultar mi factura” — “I can’t sign in to view my bill.” The simulated classifier picked Facturación (billing). A perfectly valid category. But the person who wrote the ticket needs help getting back into their account.

The classifier has an empty tool allowlist.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.