Skip to content

dt job modify

Overview

Modify fields of an existing job

Synopsis

dt job modify [OPTIONS] <job_name> 

Options

  • -v, --version=<version>
    Version of the job to modify (default latest)

  • -e, --environment=<environment>
    Environment of the job to modify (default dev)

  • -c, --child=<child>
    Child number for batch jobs (default mother-job)

  • -s, --schedule=<schedule>
    Change the schedule

  • -m, --memory=<memory>
    Change memory

  • -N, --num-cpus=<num-cpus>
    Change number of CPUs

  • -d, --display-name=<display-name>
    Change display name

  • -a, --app-section=<app-section>
    Change app section

  • -g, --groups=<groups>
    Set ACL groups of the form group1:rwoap,group2:roa

  • -u, --users=<users>
    Set ACL users of the form user1:rwoap,user2:roa

  • -o, --others=<others>
    Set ACL permissions for everybody (r, w, rw, rwoa, etc)

  • -r, --run-as=<run-as>
    Change run_as user

  • -j, --json
    Output as JSON

  • -p, --pretty
    Pretty print results

Arguments

  • job_name (required)
    Type: String
    Name or id of the job to modify

Examples

Modify schedule and resources of a job

dt job modify my-job -s '0 */5 * * * *' -m 2G -N 2

Set ACL with users and groups

dt job modify my-job -g analytics:rw -u runner:r -o r

SEE ALSO

← Back to dt job