fix: continue including maintenance mode cron tasks in the cron:list subcommand

This commit is contained in:
Jose Diaz-Gonzalez committed 2025-06-08 22:34:47 -04:00
1 parent c0eb12f572
commit 0f4b5d4305
4 files changed
+24 -14

No files matched your search

+8 -1
View File
@@ -266,10 +266,17 @@ func TriggerSchedulerDeploy(scheduler string, appName string, imageTag string) e
workingDir := common.GetWorkingDir(appName, image)
cronEntries, err := cron.FetchCronEntries(appName)
allCronEntries, err := cron.FetchCronEntries(appName)
if err != nil {
return fmt.Errorf("Error fetching cron entries: %w", err)
}
// remove maintenance cron entries
cronEntries := []cron.TemplateCommand{}
for _, cronEntry := range allCronEntries {
if !cronEntry.Maintenance {
cronEntries = append(cronEntries, cronEntry)
}
}
domains := []string{}
if _, ok := processes["web"]; ok {