Class - jobs.job_system.JobConfig

JSON Schema

JobConfig

Configuration parameters for the system job. Example config with all options defined below:

{
    "base_dir": "/var/mitto/data",
    "json_file": "system_status",
    "max_disk": 90.2,
    "max_memory": 90,
    "write_json": "true"
}

type

object

properties

  • base_dir

Base Dir

Absolute path to the directory where the log file is stored.

type

string

default

/tmp/mitto/data

format

directory-path

  • json_file

Json File

The base name of the log file. “.jsonl” will be added by Mitto.

type

string

  • max_disk

Max Disk

The max threshold of disk space used before the job fails.

type

integer

exclusiveMinimum

0

  • max_memory

Max Memory

The max threshold of memory used before the job fails.

type

integer

exclusiveMinimum

0

  • write_json

Write Json

When true, Mitto will write to a jsonl log file on every job run. json_file (above) must also be set.

type

boolean

default

False