Python 3.10 is now available in preview.

Module: google.appengine.runtime.background

Background thread handler.

Provides a way to create new threads which are not bound to the creator's request context and do not need to end before the creator request completes.

Functions

App(...): Present Handle() as a WSGI app for Titanoboa.

EnqueueBackgroundThread(...): Enqueues a new background thread request for a certain request ID.

Handle(...): Handles a background request.

BACKGROUND_REQUEST_ID 'HTTP_X_APPENGINE_BACKGROUNDREQUEST'