Skip to content

Commit

Permalink
Avoid activity stream entries for instance going offline (ansible#14385)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlanCoding authored Sep 6, 2023
1 parent e072bb7 commit 6df1de4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion awx/main/models/ha.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,10 @@ def mark_offline(self, update_last_seen=False, perform_save=True, errors=''):
if update_last_seen:
update_fields += ['last_seen']
if perform_save:
self.save(update_fields=update_fields)
from awx.main.signals import disable_activity_stream

with disable_activity_stream():
self.save(update_fields=update_fields)
return update_fields

def set_capacity_value(self):
Expand Down

0 comments on commit 6df1de4

Please sign in to comment.