Python 3.9 is now generally available.

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.