pjbriggs / nebulizer

Command line utilities to help manage users, tools and data libraries in a Galaxy instance via the API
Other
6 stars 1 forks source link

Check tool install status when user cancels installation #39

Open pjbriggs opened 7 years ago

pjbriggs commented 7 years ago

When cancelling a tool installation request (e.g. by doing ^C on nebulizer install_tool...), it is possible that Galaxy has already begun actioning the request. In this case although nebulizer has stopped, the tool installation will still be proceeding on the server - in which case there is no way to stop this through either the API or the Galaxy interface.

So: it would be useful if nebulizer could check and report the tool installation status on abort, so that the user at least is aware if the installation process is still running.

mvdbeek commented 7 years ago

We're using a similar piece of code here: https://github.com/galaxyproject/ephemeris/blob/master/ephemeris/shed_install.py#L520 So you could check for the other possible statuses.