MCPcopy Create free account
hub / github.com/PacktPublishing/Mastering-Python-Networking / background

Function background

Chapter09/chapter9_8.py:62–98  ·  view source on GitHub ↗

Decorator that runs the wrapped function as a background task. It is assumed that this function creates a new resource, and takes a long time to do so. The response has status code 202 Accepted and includes a Location header with the URL of a task resource. Sending a GET request to the t

(f)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected