unumotors / mongo-hydra

A open source mongo orchestration tool with high hopes
MIT License
10 stars 1 forks source link

Hydra should store connected clients and disconnect them at the end of commands #56

Open drubin opened 4 years ago

drubin commented 4 years ago

Currently, hydra doesn't have concept of clients and their connections.

So this makes it hard for commands to clean up after themselves when an error happens.

Ideally, there should be able to call some sort of function on an error that disconnects all connected clients.

Think of the issue we had with hydra command never-ending when we didn't explicitly call disconnet now take in our expectation flow its not always possible for the cli/lib to clean up these random connections.