kolide / launcher

Osquery launcher, autoupdater, and packager
https://kolide.com/launcher
Other
505 stars 100 forks source link

Discard "update now" requests during initial autoupdate delay #1643

Closed RebeccaMahany closed 7 months ago

RebeccaMahany commented 7 months ago

Currently, if the autoupdater receives an "autoupdate now" request during its initial delay, it returns an error to the actionqueue so that the action will be retried later. This isn't actually useful -- as soon as the autoupdater exits its initial delay, it will perform an update check, so there's no need to retry the action. This also results in some annoying logs.

This PR adjusts that behavior so that these requests are discarded.