Skip to content

Commit

Permalink
remove data on skip and error
Browse files Browse the repository at this point in the history
  • Loading branch information
bassner committed Jul 1, 2024
1 parent 0180175 commit 9c8992c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/web/status/status_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ def error(self, message: str):
"""
self.stage.state = StageStateEnum.ERROR
self.stage.message = message
self.stage.result = None
self.stage.suggestions = None
# Set all subsequent stages to SKIPPED if an error occurs
rest_of_index = (
self.current_stage_index + 1
Expand All @@ -146,6 +148,8 @@ def skip(self, message: Optional[str] = None, start_next_stage: bool = True):
"""
self.stage.state = StageStateEnum.SKIPPED
self.stage.message = message
self.stage.result = None
self.stage.suggestions = None
next_stage = self.get_next_stage()
if next_stage is not None:
self.stage = next_stage
Expand Down

0 comments on commit 9c8992c

Please sign in to comment.