Skip to content

Commit

Permalink
🐛 reset meter when requeue.
Browse files Browse the repository at this point in the history
  • Loading branch information
perillaroc committed Feb 7, 2025
1 parent 75dbbaa commit 5927144
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions takler/core/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,10 @@ def requeue(self, reset_repeat: bool = True):
for event in self.events:
event.reset()

# reset meter attributes
for meter in self.meters:
meter.reset()

# reset repeat attributes
# TODO: add requeue args.
if reset_repeat and self.repeat is not None:
Expand Down

0 comments on commit 5927144

Please sign in to comment.