Skip to content

Commit

Permalink
Improve the pattern of "schedule" in the JSON schema file (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
rocwang authored Jul 29, 2024
1 parent 8198756 commit 9497902
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions schemas/dag.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"schedule": {
"type": "string",
"pattern": "^[0-9* ]+$",
"pattern": "(\\*|[0-5]?[0-9]|\\*\/[0-9]+)\\s+(\\*|1?[0-9]|2[0-3]|\\*\/[0-9]+)\\s+(\\*|[1-2]?[0-9]|3[0-1]|\\*\/[0-9]+)\\s+(\\*|[0-9]|1[0-2]|\\*\/[0-9]+|jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\\s+(\\*\/[0-9]+|\\*|[0-7]|sun|mon|tue|wed|thu|fri|sat)\\s*(\\*\/[0-9]+|\\*|[0-9]+)?",
"description": "Cron schedule expression for the DAG"
},
"group": {
Expand Down Expand Up @@ -43,7 +43,7 @@
"description": "Seconds to wait before restarting DAG process"
},
"histRetentionDays": {
"type": "integer",
"type": "integer",
"description": "Days to retain execution history"
},
"delaySec": {
Expand Down Expand Up @@ -75,7 +75,7 @@
}
},
"description": "List of conditions to check before running DAG/step"
},
},
"mailOn": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -117,7 +117,7 @@
"command": {
"type": "string"
}
}
}
},
"exit": {
"type": "object",
Expand Down Expand Up @@ -147,7 +147,7 @@
"description": "List of step names this step depends on"
},
"description": {
"type": "string"
"type": "string"
},
"dir": {
"type": "string"
Expand Down Expand Up @@ -187,7 +187,7 @@
"skipped": {
"type": "boolean"
}
}
}
},
"retryPolicy": {
"type": "object",
Expand Down Expand Up @@ -230,4 +230,4 @@
"description": "List of steps to execute in the DAG"
}
}
}
}

0 comments on commit 9497902

Please sign in to comment.