✨ 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
@@ -36,8 +36,28 @@
|
||||
"type": "string"
|
||||
},
|
||||
"timeout": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
"description": "Abbruch nach dieser Zeit. Akzeptiert Millisekunden (500) oder eine Go-Duration (\"500ms\", \"2s\").",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"pattern": "^[0-9]+(\\.[0-9]+)?(ns|us|µs|ms|s|m|h)$"
|
||||
}
|
||||
]
|
||||
},
|
||||
"engine": {
|
||||
"description": "Überschreibt die Projekt-Engine für diesen Hook.",
|
||||
"enum": [
|
||||
"goja",
|
||||
"v8"
|
||||
]
|
||||
},
|
||||
"ignoreRequestCancel": {
|
||||
"description": "Hook läuft weiter, wenn der Client die Verbindung abbricht (z. B. SSE).",
|
||||
"type": "boolean"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -142,4 +162,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -412,6 +412,13 @@
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"jsEngine": {
|
||||
"description": "JS-Engine für dieses Projekt (überschreibt server.js.engine).",
|
||||
"enum": [
|
||||
"goja",
|
||||
"v8"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
@@ -434,4 +441,4 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user