In class RTimer in mgr_util.py, "self.finished.set()" is run even though
the event self.finished was set just now. If it wasn't set, the while
loop the precedes it would've never finished running. Therefore, remove
this redundant line of code.
Signed-off-by: Rishabh Dave <ridave@redhat.com>
while not self.finished.is_set():
self.finished.wait(self.interval)
self.function(*self.args, **self.kwargs)
- self.finished.set()
except Exception as e:
logger.error("task exception: %s", e)
raise