feat: 计划任务支持多周期执行 (#3676)

This commit is contained in:
ssongliu
2024-01-22 22:29:19 +08:00
committed by GitHub
parent 64def5bebd
commit 115b9c58b0
13 changed files with 523 additions and 475 deletions

View File

@@ -14918,7 +14918,7 @@ const docTemplate = `{
"type": "object",
"required": [
"name",
"specType",
"spec",
"type"
],
"properties": {
@@ -14928,9 +14928,6 @@ const docTemplate = `{
"containerName": {
"type": "string"
},
"day": {
"type": "integer"
},
"dbName": {
"type": "string"
},
@@ -14940,15 +14937,9 @@ const docTemplate = `{
"exclusionRules": {
"type": "string"
},
"hour": {
"type": "integer"
},
"keepLocal": {
"type": "boolean"
},
"minute": {
"type": "integer"
},
"name": {
"type": "string"
},
@@ -14959,13 +14950,10 @@ const docTemplate = `{
"script": {
"type": "string"
},
"second": {
"type": "integer"
},
"sourceDir": {
"type": "string"
},
"specType": {
"spec": {
"type": "string"
},
"targetDirID": {
@@ -14979,11 +14967,6 @@ const docTemplate = `{
},
"website": {
"type": "string"
},
"week": {
"type": "integer",
"maximum": 6,
"minimum": 0
}
}
},
@@ -15007,7 +14990,7 @@ const docTemplate = `{
"required": [
"id",
"name",
"specType"
"spec"
],
"properties": {
"appID": {
@@ -15016,9 +14999,6 @@ const docTemplate = `{
"containerName": {
"type": "string"
},
"day": {
"type": "integer"
},
"dbName": {
"type": "string"
},
@@ -15028,18 +15008,12 @@ const docTemplate = `{
"exclusionRules": {
"type": "string"
},
"hour": {
"type": "integer"
},
"id": {
"type": "integer"
},
"keepLocal": {
"type": "boolean"
},
"minute": {
"type": "integer"
},
"name": {
"type": "string"
},
@@ -15050,13 +15024,10 @@ const docTemplate = `{
"script": {
"type": "string"
},
"second": {
"type": "integer"
},
"sourceDir": {
"type": "string"
},
"specType": {
"spec": {
"type": "string"
},
"targetDirID": {
@@ -15067,11 +15038,6 @@ const docTemplate = `{
},
"website": {
"type": "string"
},
"week": {
"type": "integer",
"maximum": 6,
"minimum": 0
}
}
},

View File

@@ -14911,7 +14911,7 @@
"type": "object",
"required": [
"name",
"specType",
"spec",
"type"
],
"properties": {
@@ -14921,9 +14921,6 @@
"containerName": {
"type": "string"
},
"day": {
"type": "integer"
},
"dbName": {
"type": "string"
},
@@ -14933,15 +14930,9 @@
"exclusionRules": {
"type": "string"
},
"hour": {
"type": "integer"
},
"keepLocal": {
"type": "boolean"
},
"minute": {
"type": "integer"
},
"name": {
"type": "string"
},
@@ -14952,13 +14943,10 @@
"script": {
"type": "string"
},
"second": {
"type": "integer"
},
"sourceDir": {
"type": "string"
},
"specType": {
"spec": {
"type": "string"
},
"targetDirID": {
@@ -14972,11 +14960,6 @@
},
"website": {
"type": "string"
},
"week": {
"type": "integer",
"maximum": 6,
"minimum": 0
}
}
},
@@ -15000,7 +14983,7 @@
"required": [
"id",
"name",
"specType"
"spec"
],
"properties": {
"appID": {
@@ -15009,9 +14992,6 @@
"containerName": {
"type": "string"
},
"day": {
"type": "integer"
},
"dbName": {
"type": "string"
},
@@ -15021,18 +15001,12 @@
"exclusionRules": {
"type": "string"
},
"hour": {
"type": "integer"
},
"id": {
"type": "integer"
},
"keepLocal": {
"type": "boolean"
},
"minute": {
"type": "integer"
},
"name": {
"type": "string"
},
@@ -15043,13 +15017,10 @@
"script": {
"type": "string"
},
"second": {
"type": "integer"
},
"sourceDir": {
"type": "string"
},
"specType": {
"spec": {
"type": "string"
},
"targetDirID": {
@@ -15060,11 +15031,6 @@
},
"website": {
"type": "string"
},
"week": {
"type": "integer",
"maximum": 6,
"minimum": 0
}
}
},

View File

@@ -582,20 +582,14 @@ definitions:
type: string
containerName:
type: string
day:
type: integer
dbName:
type: string
dbType:
type: string
exclusionRules:
type: string
hour:
type: integer
keepLocal:
type: boolean
minute:
type: integer
name:
type: string
retainCopies:
@@ -603,11 +597,9 @@ definitions:
type: integer
script:
type: string
second:
type: integer
sourceDir:
type: string
specType:
spec:
type: string
targetDirID:
type: integer
@@ -617,13 +609,9 @@ definitions:
type: string
website:
type: string
week:
maximum: 6
minimum: 0
type: integer
required:
- name
- specType
- spec
- type
type: object
dto.CronjobDownload:
@@ -642,22 +630,16 @@ definitions:
type: string
containerName:
type: string
day:
type: integer
dbName:
type: string
dbType:
type: string
exclusionRules:
type: string
hour:
type: integer
id:
type: integer
keepLocal:
type: boolean
minute:
type: integer
name:
type: string
retainCopies:
@@ -665,11 +647,9 @@ definitions:
type: integer
script:
type: string
second:
type: integer
sourceDir:
type: string
specType:
spec:
type: string
targetDirID:
type: integer
@@ -677,14 +657,10 @@ definitions:
type: string
website:
type: string
week:
maximum: 6
minimum: 0
type: integer
required:
- id
- name
- specType
- spec
type: object
dto.CronjobUpdateStatus:
properties: