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
| Name | Type | Description |
|---|---|---|
| sender | object | The object that sent the task_finished signal. |
| task_result | TaskResult | An object containing the task's unique identifier, module path, and final execution status. |
| **kwargs | dict | Additional keyword arguments passed by the signal dispatcher. |
Returns
| Type | Description |
|---|---|
null | Nothing is returned as this is a signal receiver that performs logging side effects. |