Skip to content

Commit

Permalink
changing cancelled for now
Browse files Browse the repository at this point in the history
  • Loading branch information
tginsbu1 committed Sep 23, 2024
1 parent 87a005a commit a9bff4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wei/modules/rest_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,8 @@ def decorator(function):
@staticmethod
def _cancel(state: State):
"""Handles cancelling any running actions on the module. This should be overridden by the developer to provide custom behavior."""
state.status = ModuleStatus.CANCELLED
state.status[ModuleStatus.READY] = False
state.status[ModuleStatus.PAUSED] = True
return {"message": "Module actions canceled"}

def lock(self):
Expand Down

0 comments on commit a9bff4d

Please sign in to comment.