Skip to content

Improve the CLI

Right now, the API includes a CLI to facilitate its setup without figuring out how to serve it with gunicorn by using just autosubmit_api start. Even so, I think that we can make some improvements to better help the end user. These are the ones that I have in mind:

  • Add a subcommand autosubmit_api stop [port] to stop all or one (by port) API daemon instance that is running.
  • Add a subcommand autosubmit_api check to list all the running instances of the API with their respective assigned port. This might be possible by using ps x | grep autosubmit_api. Also, it will help to implement autosubmit_api stop as well.
  • Add a subcommand autosubmit_api gui or update the autosubmit_api start to serve the GUI. This could help a lot as I found that it might be a problem to map which versions of the GUI are compatible with what versions of the API. Minding more or less how the Cylc GUI (and the Django admin site) works, we can have the API and the GUI as the same package. It looks feasible to do by having the current compatible version of the GUI already compiled along with the API source.

What do you think about these options? @mcastril @bdepaula