Rename job scheduler to alarm scheduler

This commit is contained in:
Eric Traut
2026-04-06 15:21:37 -07:00
parent e89966159b
commit 5fb56e2cf1
56 changed files with 2008 additions and 1369 deletions

View File

@@ -1,7 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ThreadJob": {
"AlarmDelivery": {
"enum": [
"after-turn",
"steer-current-turn"
],
"type": "string"
},
"ThreadAlarm": {
"properties": {
"createdAt": {
"format": "int64",
@@ -10,6 +17,9 @@
"cronExpression": {
"type": "string"
},
"delivery": {
"$ref": "#/definitions/AlarmDelivery"
},
"id": {
"type": "string"
},
@@ -37,6 +47,7 @@
"required": [
"createdAt",
"cronExpression",
"delivery",
"id",
"prompt",
"runOnce"
@@ -45,17 +56,17 @@
}
},
"properties": {
"job": {
"$ref": "#/definitions/ThreadJob"
"alarm": {
"$ref": "#/definitions/ThreadAlarm"
},
"threadId": {
"type": "string"
}
},
"required": [
"job",
"alarm",
"threadId"
],
"title": "ThreadJobFiredNotification",
"title": "ThreadAlarmFiredNotification",
"type": "object"
}

View File

@@ -1,7 +1,14 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"definitions": {
"ThreadJob": {
"AlarmDelivery": {
"enum": [
"after-turn",
"steer-current-turn"
],
"type": "string"
},
"ThreadAlarm": {
"properties": {
"createdAt": {
"format": "int64",
@@ -10,6 +17,9 @@
"cronExpression": {
"type": "string"
},
"delivery": {
"$ref": "#/definitions/AlarmDelivery"
},
"id": {
"type": "string"
},
@@ -37,6 +47,7 @@
"required": [
"createdAt",
"cronExpression",
"delivery",
"id",
"prompt",
"runOnce"
@@ -45,9 +56,9 @@
}
},
"properties": {
"jobs": {
"alarms": {
"items": {
"$ref": "#/definitions/ThreadJob"
"$ref": "#/definitions/ThreadAlarm"
},
"type": "array"
},
@@ -56,9 +67,9 @@
}
},
"required": [
"jobs",
"alarms",
"threadId"
],
"title": "ThreadJobUpdatedNotification",
"title": "ThreadAlarmUpdatedNotification",
"type": "object"
}