feat: allow specifying maintenance mode in the file or not

If the app's cron tasks are set to maintenance mode, then the task is set to maintenance mode regardless.
This commit is contained in:
Jose Diaz-Gonzalez
2025-09-21 20:14:50 -04:00
parent 4a357e9896
commit e42df29a79
5 changed files with 13 additions and 7 deletions

View File

@@ -55,6 +55,9 @@ type CronTask struct {
// Command is the command to execute
Command string `json:"command"`
// Maintenance is whether or not the cron command is in maintenance mode
Maintenance bool `json:"maintenance"`
// Schedule is the cron schedule to execute the command on
Schedule string `json:"schedule"`
}