mirror of
https://github.com/ansible/awx.git
synced 2026-01-15 11:50:42 -03: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:
parent
564a02c92a
commit
8708fcf8ce
@ -754,8 +754,8 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
|
||||
name=self.name,
|
||||
url=self.get_ui_url(),
|
||||
created_by=smart_text(self.created_by),
|
||||
started=self.started.isoformat(),
|
||||
finished=self.finished.isoformat(),
|
||||
started=self.started.isoformat() if self.started is not None else None,
|
||||
finished=self.finished.isoformat() if self.finished is not None else None,
|
||||
status=self.status,
|
||||
traceback=self.result_traceback)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user