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.

Module: google.appengine.api.background_thread.background_thread

Background Threads API.

An API for creating background threads.

Background threads created using this API do not inherit the context of their creator and do not need to end before the creator request completes.


class BackgroundThread: A threading.Thread-like interface for background threads.

class BackgroundThreadLimitReachedError: Error raised when no further active background threads can be created.

class Error: Base exception class for this module.

class FrontendsNotSupported: Error raised when a background thread is requested on a front end.


start_new_background_thread(...): Starts a new background thread.