Skip to content

Commit

Permalink
add schema for scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijeetSaroha committed Dec 5, 2024
1 parent c86c19e commit 7a5f957
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/makim/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,35 @@
}
},
"additionalProperties": false
},
"scheduler": {
"type": "object",
"description": "Scheduler configuration for tasks",
"patternProperties": {
"^[a-zA-Z0-9_-]+$": {
"type": "object",
"required": ["schedule", "task"],
"properties": {
"schedule": {
"type": "string",
"description": "Cron-style schedule for the task (e.g., '* * * * *' for every minute)"
},
"task": {
"type": "string",
"description": "Full task path in the format 'group.task'"
},
"args": {
"type": "object",
"description": "Arguments to pass to the scheduled task",
"additionalProperties": {
"type": ["string", "boolean"]
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down

0 comments on commit 7a5f957

Please sign in to comment.