FastAPI uses background tasks as sort of a mini task scheduler to handle asynchronous functionality in the background. For large functionality it should obviously be offloaded to Celery or something like that, but for simple things it can be handled using background tasks.
In this video I show you how you can use some simple background tasks in your app.
A link to documentation describing why you should use FastAPI's `BackgroundTasks` package and not Starlette's `BackgroundTask` is https://fastapi.tiangolo.com/tutorial...
GitHub: https://github.com/jvp-design/fastapi...
На этой странице сайта вы можете посмотреть видео онлайн Fast API Tutorial, Part 31: Background Tasks длительностью online в хорошем качестве, которое загрузил пользователь JVP Design 24 Август 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 12,840 раз и оно понравилось 139 зрителям. Приятного просмотра!