Skip to content

Commit

Permalink
Add scrubbing to the handler
Browse files Browse the repository at this point in the history
  • Loading branch information
lnauta committed Sep 26, 2024
1 parent 9961c7b commit 73d46c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions picas/actors.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ def handler(self, signum, frame):

# update the token state, if reset vaue is None, do nothing.
if self.current_task and self.token_reset_values is not None:
# scrub goes first, as it reset lock and done to defaults, which could be overwritten below
self.current_task.scrub()
self.current_task['lock'] = self.token_reset_values[0]
self.current_task['done'] = self.token_reset_values[1]
self.db.save(self.current_task)
Expand Down

0 comments on commit 73d46c7

Please sign in to comment.