Wiki

Clone wiki

go-docker-cli / godjob

create

Usage: godjob create [OPTIONS]

  create a new job

Options:
  -n, --name TEXT                 Job name  [required]
  -d, --description TEXT          description
  -t, --tags TEXT                 tags (separated by comma)
  -p, --project [GenOuest|bipaa|default]
                                  project name
  -c, --cpu INTEGER               number of CPU
  -r, --ram INTEGER               RAM memory (Gb)
  -i, --image TEXT                image URL  [required]
  --external_image                use an external image URL
  -s, --script FILENAME           bash script only
  -v, --volume [home|omaha|db|softs]
                                  volume to mount
  -a, --array TEXT                array : 'start:stop:step'
  -l, --label TEXT                label constraints
  --interactive                   interactive mode for ssh connection
  --root                          root mode
  --login TEXT                    user login
  --parent TEXT                   job(s) to be finished before running the job
                                  (separated by comma)
  --tmp_storage TEXT              local storage requirements
  --env TEXT                      Substitute environment variables in script
  --cmd TEXT                      Command to execute, exclusive with --script
  --wait                          keep waiting for the end of the job
  --retry INTEGER                 Number of retries in case of node failure
  --placement TEXT                executor placement (default to first one if not set or only one available)
  --help                          Show this message and exit.

examples:

godjob create -n job_name -d "example job" -i centos:latest -s script_to_execute.sh -v home
godjob create -n job_name -d "interactive job" -i rastasheep/ubuntu-sshd --interactive

kill

Usage: godjob kill [OPTIONS] JOB_ID... [LOGIN]

  kill a user running job

Options:
  --help  Show this message and exit.

examples:

godjob kill 35
godjob kill 36 37

killall

Usage: godjob killall [OPTIONS] [LOGIN]

  kill all active jobs (only for administrators)

Options:
  --help  Show this message and exit.
  --tag   Optional tag to filter tasks to kill
examples:
godjob killall
godjob killall --tag myprogtest
godjob killall unused_user

list

Usage: godjob list [OPTIONS] COMMAND [ARGS]...

  list godocker jobs

Options:
  --help  Show this message and exit.

Commands:
  active     list user active jobs
  activeall  list all active jobs (only for...
  over       list user over jobs
  overall    list all over jobs (only for administrators)

commands description

resume

Usage: godjob resume [OPTIONS] JOB_ID...

  resume a suspended job

Options:
  --help  Show this message and exit.
example:
godjob resume 37

Usage: godjob search [OPTIONS] REGEX

  search active or over jobs from a regex

Options:
  --help  Show this message and exit.
examples:
godjob search 37
godjob search mytag
godjob search centos

show

Usage: godjob show [OPTIONS] JOB_ID

  show job details

Options:
  --help  Show this message and exit.
example:
godjob show 36

suspend

Usage: godjob suspend [OPTIONS] JOB_ID...

  suspend an active job

Options:
  --help  Show this message and exit.
example:
godjob suspend 35

Updated