Skip to content

Commit

Permalink
feat: restart sidecar when restarting node
Browse files Browse the repository at this point in the history
  • Loading branch information
rcstanciu committed Jun 6, 2021
1 parent ccf24eb commit 142f09d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def restart_node():
logging.debug("Restarting node")

for item in client.containers.list():
if item.name == 'node':
if item.name == 'node' or item.name == 'sidecar':
item.stop()
break

Expand Down

0 comments on commit 142f09d

Please sign in to comment.