Skip to content

Commit

Permalink
return ErrorRecoveryType and docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
TamarZanzouri committed Jul 26, 2024
1 parent a5cf32d commit fe6bc3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/src/opentrons/protocol_engine/protocol_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,7 @@ def set_and_start_queue_worker(
self._queue_worker.start()

async def set_error_recovery_policy(self, policy: ErrorRecoveryPolicy) -> None:
"""Set error recovery policy for run."""
raise NotImplementedError("set_error_recovery_policy is not implemented yet")


Expand Down
2 changes: 1 addition & 1 deletion robot-server/robot_server/runs/error_recovery_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _policy(

if command_type_matches and error_type_matches:
if rule.ifMatch == ReactionIfMatch.IGNORE_AND_CONTINUE:
raise NotImplementedError # No protocol engine support for this yet. It's in EXEC-302.
return ErrorRecoveryType.IGNORE_AND_CONTINUE
elif rule.ifMatch == ReactionIfMatch.FAIL_RUN:
return ErrorRecoveryType.FAIL_RUN
elif rule.ifMatch == ReactionIfMatch.WAIT_FOR_RECOVERY:
Expand Down

0 comments on commit fe6bc3b

Please sign in to comment.