lordmauve / chopsticks

Chopsticks is an orchestration library: it lets you execute Python code on remote hosts over SSH.
https://chopsticks.readthedocs.io/
Apache License 2.0
158 stars 16 forks source link

Failure during put() should abort gracefully #25

Open lordmauve opened 7 years ago

lordmauve commented 7 years ago

Currently when a .put() operation fails early, the controller continues sending chunks.

Additionally, the remote side will send a traceback for each chunk it receives after the first failure. This causes a KeyError on the controller.

To recover gracefully from this, the remote side should disregard uploaded chunks until it receives an acknowledgement from the controller that the upload has been aborted.