mirror of
https://github.com/ansible/awx.git
synced 2026-05-07 09:27:36 -02:30
Handle corner case when a job spawns notifications
If a dependent task fails a job might not have a started or finished time when emitting the notification
This commit is contained in:
@@ -754,8 +754,8 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
|
|||||||
name=self.name,
|
name=self.name,
|
||||||
url=self.get_ui_url(),
|
url=self.get_ui_url(),
|
||||||
created_by=smart_text(self.created_by),
|
created_by=smart_text(self.created_by),
|
||||||
started=self.started.isoformat(),
|
started=self.started.isoformat() if self.started is not None else None,
|
||||||
finished=self.finished.isoformat(),
|
finished=self.finished.isoformat() if self.finished is not None else None,
|
||||||
status=self.status,
|
status=self.status,
|
||||||
traceback=self.result_traceback)
|
traceback=self.result_traceback)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user