mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 08:02:40 +00:00
fix: do not delete primary schedule of script/flow on redeploy even if schedule wasn't loaded
This commit is contained in:
@@ -330,7 +330,7 @@
|
||||
requestBody: { enabled }
|
||||
})
|
||||
}
|
||||
} else if (scheduleExists) {
|
||||
} else if (scheduleExists && !$triggersCount?.primary_schedule) {
|
||||
await ScheduleService.deleteSchedule({
|
||||
workspace: $workspaceStore ?? '',
|
||||
path: $pathStore
|
||||
|
||||
@@ -331,7 +331,7 @@
|
||||
} else if (enabled) {
|
||||
await createSchedule(script.path)
|
||||
}
|
||||
} else if (scheduleExists) {
|
||||
} else if (scheduleExists && !$triggersCount?.primary_schedule) {
|
||||
await ScheduleService.deleteSchedule({
|
||||
workspace: $workspaceStore ?? '',
|
||||
path: script.path
|
||||
|
||||
Reference in New Issue
Block a user