View source on GitHub |
Enqueues a new background thread request for a certain request ID.
google.appengine.runtime.background.EnqueueBackgroundThread(
request_id, target, args, kwargs
)
Args | |
---|---|
request_id
|
A str containing the request ID for this background thread. |
target
|
A callable for the background thread to execute. |
args
|
A tuple of positional args to be passed to target. |
kwargs
|
A dict of keyword args to be passed to target. |
Returns | |
---|---|
The thread_id of the background thread. |