Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When checking if patches are to be installed, don't exit the function after finding a patched machine. #1277

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

af7567
Copy link
Contributor

@af7567 af7567 commented Sep 6, 2022

Currently check_agent_update_schedule_task() will return after finding a machine which has already been patched the same day, this prevents any agents later in the list getting updates.

Returning is ok if only 1 patch policy triggers per day, but if client1 patches at 03:00 and client2 patches at 19:00 then client2 won't get all patches if any agents from client1 are online.

Fixes #1270

…her agents won't receive updates

Signed-off-by: Adam <adam@csparker.co.uk>
@codecov
Copy link

codecov bot commented Sep 6, 2022

Codecov Report

Merging #1277 (28f6838) into develop (b14ea1f) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff            @@
##           develop    #1277   +/-   ##
========================================
  Coverage    82.25%   82.25%           
========================================
  Files          114      114           
  Lines         7493     7493           
========================================
  Hits          6163     6163           
  Misses        1330     1330           
Impacted Files Coverage Δ
api/tacticalrmm/winupdate/tasks.py 34.52% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@wh1te909
Copy link
Member

wh1te909 commented Sep 6, 2022

great catch thanks!

@wh1te909 wh1te909 merged commit a5345e8 into amidaware:develop Sep 6, 2022
@af7567 af7567 deleted the winupdatesfix branch September 16, 2022 23:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows updates not getting installed on most clients
2 participants