79 lines
1.9 KiB
JSON
79 lines
1.9 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "file:schedule.schema.json",
|
|
"title": "PMSCO Job Schedule",
|
|
"description": "PMSCO Job Schedule",
|
|
"type": "object",
|
|
"properties": {
|
|
"__module__": {
|
|
"type": "string",
|
|
"examples": ["pmsco.schedule"]
|
|
},
|
|
"__class__": {
|
|
"type": "string",
|
|
"examples": ["PsiRaSchedule"]
|
|
},
|
|
"nodes": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"default": 1
|
|
},
|
|
"tasks": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"default": 8
|
|
},
|
|
"tasks_per_node": {
|
|
"type": "integer",
|
|
"minimum": 1,
|
|
"default": 8
|
|
},
|
|
"wall_time": {
|
|
"type": "string",
|
|
"description": "[days-]hours[:minutes[:seconds]]",
|
|
"pattern": "^([0-9]+-)?[0-9]+(:[0-9]+)?(:[0-9]+)?$",
|
|
"default": "1",
|
|
"examples": [
|
|
"2:00",
|
|
"5-4:3:21"
|
|
]
|
|
},
|
|
"partition": {
|
|
"type": "string",
|
|
"description": "name of slurm partition",
|
|
"default": ""
|
|
},
|
|
"modules": {
|
|
"type": "array",
|
|
"description": "names of system modules to load",
|
|
"items": {"type": "string"},
|
|
"minItems": 0,
|
|
"uniqueItems": true
|
|
},
|
|
"conda_env": {
|
|
"type": "string",
|
|
"description": "name or path of conda environment",
|
|
"default": ""
|
|
},
|
|
"manual": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"title": "manual submission",
|
|
"description": "produce a job file that is submitted separately."
|
|
},
|
|
"enabled": {
|
|
"type": "boolean",
|
|
"title": "enable schedule",
|
|
"default": false,
|
|
"description": "true: schedule the job, false: run it directly."
|
|
},
|
|
"overwrite_job_dir": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"title": "overwrite job directory",
|
|
"description": "true: overwrite contents in output directory (dangerous), false (default): raise error if directory exists."
|
|
}
|
|
},
|
|
"required": ["__class__", "__module__"]
|
|
}
|