Python 3.9 is now generally available.

google.appengine.runtime.background.Handle

Handles a background request.

This function is called by the runtime in response to an /_ah/background request.

environ A dict containing the environ for this request (i.e. for os.environ).

A dict containing: error: App Engine error code. 0 if completed successfully, 1 otherwise. response_code: The HTTP response code. 200 if completed successfully, 500 otherwise. logs: A list of tuples (timestamp_usec, severity, message) of log entries. timestamp_usec is a long, severity is int and message is str. Severity levels are 0..4 for Debug, Info, Warning, Error, Critical.