Skip to main content

log_task_started

Logs the identification, module path, and status of a task when it begins execution by listening to the task_started signal.

def log_task_started(
sender: object,
task_result: TaskResult,
**kwargs: dict
)

Logs the initialization of a background task, including its unique identifier, module path, and current status.

Parameters

NameTypeDescription
senderobjectThe object that sent the task_started signal.
task_resultTaskResultThe task result object containing the task's unique ID, module path, and execution status.
**kwargsdictAdditional keyword arguments passed by the signal dispatcher.

Returns

TypeDescription
Nothing is returned; this function performs a logging side effect.