Skip to content

Commit

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

* new approach

(cherry picked from commit 6554032)
  • Loading branch information
nagworld9 authored Oct 3, 2023
1 parent c5181c0 commit 791b8db
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 791b8db

Please sign in to comment.