- hooks.schema.json: `timeout` akzeptiert Integer (ms) oder Go-Duration-String; neu `engine` (goja|v8) und `ignoreRequestCancel`. - job.schema.json: `timeout` Integer oder String; neu `engine`. - project.schema.json: neu `jsEngine` (goja|v8). - index.d.ts: JobConfig.timeout ist `number | string` (Beschreibung war fälschlich "seconds"), neu `engine`.
50 lines
1005 B
JSON
50 lines
1005 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "job.schema.json",
|
|
"title": "Tibi job config",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"patternProperties": {
|
|
"^x-": {}
|
|
},
|
|
"properties": {
|
|
"cron": {
|
|
"type": "string"
|
|
},
|
|
"type": {
|
|
"const": "javascript"
|
|
},
|
|
"file": {
|
|
"type": "string"
|
|
},
|
|
"timeout": {
|
|
"description": "Abbruch nach dieser Zeit. Akzeptiert Millisekunden (30000) oder eine Go-Duration (\"30s\", \"5m\").",
|
|
"oneOf": [
|
|
{
|
|
"type": "integer",
|
|
"minimum": 0
|
|
},
|
|
{
|
|
"type": "string",
|
|
"pattern": "^[0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h)$"
|
|
}
|
|
]
|
|
},
|
|
"meta": {
|
|
"type": "object",
|
|
"additionalProperties": true
|
|
},
|
|
"engine": {
|
|
"description": "Überschreibt die Projekt-Engine für diesen Job.",
|
|
"enum": [
|
|
"goja",
|
|
"v8"
|
|
]
|
|
}
|
|
},
|
|
"required": [
|
|
"type",
|
|
"file"
|
|
]
|
|
}
|