Skip to content

Commit

Permalink
Allow overriding of runner mappings in Runner class
Browse files Browse the repository at this point in the history
  • Loading branch information
TaekyungHeo committed May 15, 2024
1 parent f3c6951 commit cf566dd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/cloudai/runner/core/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,6 @@ def register(cls, system_type: str) -> Callable:
"""

def decorator(runner_class: Type[BaseRunner]) -> Type[BaseRunner]:
if system_type in cls._runners:
raise KeyError(f"Runner for {system_type} already registered.")
cls._runners[system_type] = runner_class
return runner_class

Expand Down

0 comments on commit cf566dd

Please sign in to comment.