All posts
Tag

background-tasks

1 post

Tutorial

Clean Code Python: Background Tasks — Queues, Workers, and Context Propagation

At 1M transactions per day, you cannot process everything in the request cycle. But background tasks are where tenant context silently disappears — the worker has no request, no middleware, no headers. Here is how to propagate context safely.

15 min read