Skip to content

Commit

Permalink
fix agent manifest call frequency (#2923)
Browse files Browse the repository at this point in the history
* fix agent manifest call frequency

* new approach
  • Loading branch information
nagworld9 committed Sep 13, 2023
1 parent 8985a42 commit 6554032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion azurelinuxagent/ga/agent_update_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ def __update_last_attempt_update_times(self):
else:
self.update_state.last_attempted_normal_update_time = now
self.update_state.last_attempted_hotfix_update_time = now
self.update_state.last_attempted_manifest_download_time = now

def __should_agent_attempt_manifest_download(self):
"""
Expand All @@ -103,6 +102,7 @@ def __should_agent_attempt_manifest_download(self):

if next_attempt_time > now:
return False
self.update_state.last_attempted_manifest_download_time = now
return True

@staticmethod
Expand Down

0 comments on commit 6554032

Please sign in to comment.