Skip to content

Commit

Permalink
[Notifications] Fix notifications pusher failing to initialize (#3654)
Browse files Browse the repository at this point in the history
fix

Co-authored-by: quaark <a.melnick@icloud.com>
  • Loading branch information
quaark and quaark committed May 29, 2023
1 parent bfd8b97 commit 5e6d709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlrun/utils/notifications/notification_pusher.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, runs: typing.Union[mlrun.lists.RunList, list]):
for notification in run.spec.notifications:
notification.status = run.status.notifications.get(
notification.name
).status
).get("status", mlrun.common.schemas.NotificationStatus.PENDING)
if self._should_notify(run, notification):
self._notification_data.append((run, notification))

Expand Down

0 comments on commit 5e6d709

Please sign in to comment.