Skip to content

Commit

Permalink
Merge pull request #3175 from ACE-IoT-Solutions/2024-04-22-file-watch…
Browse files Browse the repository at this point in the history
…er-hotfix

Fixes process overload from file events
  • Loading branch information
craig8 authored Apr 24, 2024
2 parents 21a15ae + 4050d2c commit 717c3fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions volttron/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def __init__(self, filetowatch, callback):
_log.debug("patterns is {}".format([get_home() + '/' + filetowatch]))
self._callback = callback

def on_any_event(self, event):
def on_closed(self, event):
_log.debug("Calling callback on event {}. Calling {}".format(event, self._callback))
try:
self._callback()
Expand All @@ -147,7 +147,7 @@ def __init__(self, filetowatch, callback):
def watchfile(self):
return self._filetowatch

def on_any_event(self, event):
def on_closed(self, event):
_log.debug("Calling callback on event {}. Calling {}".format(event, self._callback))
try:
self._callback(self._filetowatch)
Expand Down

0 comments on commit 717c3fd

Please sign in to comment.