Skip to main content

log_task_finished

Logs the completion status of a task, recording an error with exception information if the task failed or an info message if it succeeded.

def log_task_finished(
sender: object,
task_result: TaskResult,
**kwargs: dict
) - > null

Logs the completion status of a background task, recording an error with stack trace if the task failed or an info message if it succeeded.

Parameters

NameTypeDescription
senderobjectThe object that sent the task_finished signal.
task_resultTaskResultAn object containing the task's unique identifier, module path, and final execution status.
**kwargsdictAdditional keyword arguments passed by the signal dispatcher.

Returns

TypeDescription
nullNothing is returned as this is a signal receiver that performs logging side effects.