explain the source of task failures related notifications (#635)

This commit is contained in:
bmc-msft
2021-03-06 08:35:09 -05:00
committed by GitHub
parent 157a14d003
commit 23dc8ad301

View File

@ -29,7 +29,10 @@ def fail_task(report: Report, error: Exception) -> None:
task = Task.get(report.job_id, report.task_id)
if task:
task.mark_failed(
Error(code=ErrorCode.NOTIFICATION_FAILURE, errors=[str(error)])
Error(
code=ErrorCode.NOTIFICATION_FAILURE,
errors=["notification failed", str(error)],
)
)