File: background_tasks.rst

package info (click to toggle)
quart 0.20.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,888 kB
  • sloc: python: 8,644; makefile: 42; sh: 17; sql: 6
file content (13 lines) | stat: -rw-r--r-- 474 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
.. _background_task_discussion:

Background tasks
================

The API for background tasks follows Sanic and Starlette by taking a
callable and arguments. However, Quart will ensure that the tasks
finish during the shutdown (unless the server times out and
cancels). This is as you'd hope in a production environment.

Errors raised in a background task are logged but otherwise ignored
allowing the app to continue - much like with request/websocket
handling errors.