call
Call a task by name.
def call(
ctx: click.Context,
name: string,
args: list = [],
kwargs: dict = {},
eta: string,
countdown: float,
expires: string|float,
serializer: string = json,
queue: string,
exchange: string,
routing_key: string
) - > null
Call a task by name.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | click.Context | The Click context object containing the Celery application instance and configuration. |
| name | string | The fully qualified name of the Celery task to be executed. |
| args | list = [] | A list of positional arguments to pass to the task function. |
| kwargs | dict = {} | A dictionary of keyword arguments to pass to the task function. |
| eta | string | The scheduled time in ISO8601 format when the task should be executed. |
| countdown | float | The number of seconds from the current time to wait before executing the task. |
| expires | `string | float` |
| serializer | string = json | The name of the serialization method used to encode the task message. |
| queue | string | The name of the specific message queue to which the task should be routed. |
| exchange | string | The name of the custom exchange to use for routing the task message. |
| routing_key | string | The custom routing key used to determine which queue receives the task message. |
Returns
| Type | Description |
|---|---|
null | The function prints the unique task ID to the standard output and returns nothing. |