firebase_functions.tasks_fn module

Functions to handle Tasks enqueued with Google Cloud Tasks.

Functions

on_task_dispatched

firebase_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()defexample(request:tasks.CallableRequest)->Any:return"Hello World"
Parameters:

**kwargs (asfirebase_functions.options.TaskQueueOptions) -- TaskQueueOptions options.

Return type:

typing.Callable[ [firebase_functions.https.CallableRequest [object ] ],object ]A function that takes a CallableRequest and returns anobject.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2023-11-06 UTC.