✨ types(config): engine/jsEngine und Duration-Timeouts
- 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`.
This commit is contained in:
1 parent
9fa0aff643
commit
e935dc7cc1
4 files changed
+58
-9
No files matched your search
@@ -18,16 +18,32 @@
|
||||
"type": "string"
|
||||
},
|
||||
"timeout": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
"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"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user