Skip to content

Commit

Permalink
Properly remove worker when note needed
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Sep 26, 2022
1 parent b671048 commit 9eda26a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/maggma/cli/distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ def manager(
f"Sending exit signal to worker: {msg.split('_')[1]}"
)
socket.send_multipart([identity, b"", b"EXIT"])
workers.pop(identity)

elif "ERROR" in msg:
# Remove worker and requeue work sent to it
Expand Down

0 comments on commit 9eda26a

Please sign in to comment.