Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • Autosubmit API Autosubmit API
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 28
    • Issues 28
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Earth SciencesEarth Sciences
  • Autosubmit APIAutosubmit API
  • Issues
  • #48
Closed
Open
Issue created Nov 20, 2023 by Luiggi Tenorio Ku@ltenorioOwner

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

Assignee
Assign to
Time tracking