Add experimental thread job scheduler for /loop

This commit is contained in:
Eric Traut
2026-03-30 15:30:34 -06:00
parent 716f7b0428
commit a02c2cd50c
52 changed files with 2291 additions and 113 deletions

View File

@@ -0,0 +1,64 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ThreadJob": {
"properties": {
"createdAt": {
"format": "int64",
"type": "integer"
},
"cronExpression": {
"type": "string"
},
"id": {
"type": "string"
},
"lastRunAt": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"nextRunAt": {
"format": "int64",
"type": [
"integer",
"null"
]
},
"prompt": {
"type": "string"
},
"runOnce": {
"type": "boolean"
}
},
"required": [
"createdAt",
"cronExpression",
"id",
"prompt",
"runOnce"
],
"type": "object"
}
},
"properties": {
"jobs": {
"items": {
"$ref": "#/definitions/ThreadJob"
},
"type": "array"
},
"threadId": {
"type": "string"
}
},
"required": [
"jobs",
"threadId"
],
"title": "ThreadJobUpdatedNotification",
"type": "object"
}