Skip to content

Github mirror of "cloud/toolforge/jobs-framework-cli" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

License

Notifications You must be signed in to change notification settings

wikimedia/cloud-toolforge-jobs-framework-cli

Repository files navigation

toolforge jobs framework -- command line interface

This is the source code of command line interface part of the Toolforge Jobs Framework.

The TJF creates an abstraction layer over kubernetes Jobs, CronJobs and Deployments to allow operating a Kubernetes installation as if it were a Grid (like GridEngine).

This was created for Wikimedia Toolforge.

Usage

The help message:

$ toolforge-jobs --help
usage: toolforge-jobs [-h] [--debug] {images,run,show,logs,list,delete,flush,load,restart,quota} ...

Toolforge Jobs Framework, command line interface

positional arguments:
  {images,run,show,logs,list,delete,flush,load,restart,quota}
                        possible operations (pass -h to know usage of each)
    images              list information on available container image types for Toolforge jobs
    run                 run a new job of your own in Toolforge
    show                show details of a job of your own in Toolforge
    logs                show output from a running job
    list                list all running jobs of your own in Toolforge
    delete              delete a running job of your own in Toolforge
    flush               delete all running jobs of your own in Toolforge
    load                flush all jobs and load a YAML file with job definitions and run them
    restart             restarts a running job
    quota               display quota information

options:
  -h, --help            show this help message and exit
  --debug               activate debug mode

More information at Wikitech and in the man page.

Installation

We currently deploy this code into Toolforge using a debian package that is built from this very source tree.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Development

You need a local kubernetes cluster with a fake Toolforge installed to it. There are several ways of doing that. The author of this README recommends the lima-kilo project.

Follow docs at https://gitlab.wikimedia.org/cloud/toolforge/lima-kilo

License

GPLv3

About

Github mirror of "cloud/toolforge/jobs-framework-cli" - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing)

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 5