Skip to content

Commit

Permalink
U improve
Browse files Browse the repository at this point in the history
  • Loading branch information
vapao committed Oct 13, 2020
1 parent eb5e384 commit 3fb4d83
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion spug_api/apps/monitor/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ def _handle_event(self, event):
Notify.make_notify('monitor', '1', f'{obj.name} - 执行异常', f'{event.exception}')
elif event.code == EVENT_JOB_EXECUTED:
is_ok, out = event.retval
obj = Detection.objects.filter(pk=event.job_id).first()
is_notified = True if obj.latest_notify_time else False
if obj.latest_status in [0, None] and is_ok is False:
obj.latest_fault_time = int(time.time())
Expand Down

0 comments on commit 3fb4d83

Please sign in to comment.