Notice: Over the next few months, we're reorganizing the App Engine documentation site to make it easier to find content and better align with the rest of Google Cloud products. The same content will be available, but the navigation will now match the rest of the Cloud products.

Python 3.10 is now available in preview.

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.