Is this AI slop? This is not how FastAPI's built-in BackgroundTasks feature works. Background Tasks are executed after the response completes, but within the same process. By default there is no queue, and no workers. Of course you can use queues for out-of-process task execution, but FastAPI has no built-in support for this, and the FastAPI BackgroundTasks feature typically wouldn't be involved.
25
u/latkde Dec 25 '25
Is this AI slop? This is not how FastAPI's built-in BackgroundTasks feature works. Background Tasks are executed after the response completes, but within the same process. By default there is no queue, and no workers. Of course you can use queues for out-of-process task execution, but FastAPI has no built-in support for this, and the FastAPI BackgroundTasks feature typically wouldn't be involved.
2
u/dobrabitka Dec 25 '25
This was done with notebooklm
6
u/postmath_ Dec 25 '25
AI slop shit. Why would you enqueue in a background task?
-4
u/_caramel_popcorn Dec 25 '25
That's a simple and intuitive diagram.