Skip to content

Glossary: Building APIs with FastAPI

BackgroundTasks

Also written: add_task

A FastAPI parameter type you add to an endpoint, which FastAPI fills in. You call `tasks.add_task(function, args...)` to schedule work after the reply.

Where the book teaches it

Related terms

Background task