firebase_functions.tasks_fn module
Functions to handle Tasks enqueued with Google Cloud Tasks.
Functions
on_task_dispatchedfirebase_functions.tasks_fn.on_task_dispatched(**kwargs) → Callable[[Callable[[CallableRequest[Any]], Any]], Response] |
---|
Creates a handler for tasks sent to a Google Cloud Tasks queue.
Requires a function that takes a CallableRequest.
Example:
@tasks.on_task_dispatched()
def example(request: tasks.CallableRequest) -> Any:
return "Hello World"
- Parameters:
**kwargs (as firebase_functions.options.TaskQueueOptions ) -- TaskQueueOptions options.
- Return type:
typing.Callable
[ [ firebase_functions.https.CallableRequest [
object ] ], object ]
A function that takes a CallableRequest and returns an object .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-11-06 UTC.
[null,null,["Last updated 2023-11-06 UTC."],[],[]]