Azure / packer-azure

Packer for Azure
MIT License
115 stars 50 forks source link

Support interrupting long running tasks. #221

Closed boumenot closed 8 years ago

boumenot commented 8 years ago

Fix for #141.

If a user hits Ctrl-C the user will have to wait until the step has completed before the Ctrl-C is processed. This change processes the Ctrl-C within a 100ms, and immediately aborts all work. There is no cleanup done, and the task running in Azure is not killed. The following tasks are now interruptible.

All othere tasks run quickly enough that I did not make them interruptible.

Small refactoring to the way errors are handled at the end of each step.

paulmey commented 8 years ago

LGTM otherwise