R

Ravina • 3.96K Points
Extraordinary

Q. Which of the following methods is used to run background tasks in FastAPI?

  • (A) add_task()
  • (B) run_in_background()
  • (C) BackgroundTasks.add_task()
  • (D) schedule_task()
  • Correct Answer - Option(C)
  • Views: 10
  • Filed under category Fast API
  • Hashtags:

Explanation by: Ravina
You can use `BackgroundTasks.add_task()` to schedule background tasks in FastAPI.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.