Skip to content

Commit

Permalink
fix: allow for failed deployment stoping
Browse files Browse the repository at this point in the history
  • Loading branch information
0xArdi committed Sep 9, 2024
1 parent 531047c commit cb4f925
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions stop_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,11 +324,8 @@ def get_erc20_balance(ledger_api: LedgerApi, token: str, account: str) -> int:
def main() -> None:
"""Run service."""

print_title("Optimus Quickstart")
print("This script will assist you in setting up and running the Optimus service.")
print()
print_title("Stop Optimus Quickstart")

print_section("Set up local user account")
operate = OperateApp(
home=OPERATE_HOME,
)
Expand Down
2 changes: 1 addition & 1 deletion stop_service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
if [ "$(git rev-parse --is-inside-work-tree)" = true ]
then
poetry install
poetry run python stop_service.py
poetry run python stop_service.py || echo "Stopping the deployment failed. Continuing with cleanup."
docker rm -f $(docker ps -a -q --filter name=optimus)
sudo rm -rf .optimus/services/*/deployment
else
Expand Down

0 comments on commit cb4f925

Please sign in to comment.