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

Figure out need_to_collect function in entity plugin #3206

Open
johannaengland opened this issue Nov 15, 2024 · 1 comment
Open

Figure out need_to_collect function in entity plugin #3206

johannaengland opened this issue Nov 15, 2024 · 1 comment

Comments

@johannaengland
Copy link
Contributor

@defer.inlineCallbacks
def _need_to_collect(self):
yield self.stampcheck.load()
yield self.stampcheck.collect([self.entitymib.get_last_change_time()])
result = yield self.stampcheck.is_changed()
defer.returnValue(result)

Originally posted by @lunkwill42 in #3029 (comment)

This function has been unused since being introduced and it should be looked at to either remove it or improve it in a way that it can be used.

@lunkwill42
Copy link
Member

This function has been unused since being introduced and it should be looked at to either remove it or improve it in a way that it can be used.

That assessment is incorrect. The function was in use when it was introduced, but the call to it was commented out in a later release, due to collection problems that arose. IIRC, some devices would not update their timestamps properly, even if the entPhysicalTable had been updated, and this would cause the plugin to never retrieve any of those updates, instead opting for its cached version.

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

No branches or pull requests

2 participants