mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-07 16:03:21 +00:00
Revert "fix(cli): skip setScheduleEnabled when local YAML lacks enabled"
This reverts commit 23ba7e72fc.
This commit is contained in:
@@ -153,15 +153,7 @@ export async function pushSchedule(
|
|||||||
...preserveFields,
|
...preserveFields,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
// Only push `enabled` when the local YAML actually carries it. Tarball
|
if (localSchedule.enabled != schedule.enabled) {
|
||||||
// export from a workspace fork strips the field (so fork→parent
|
|
||||||
// round-trips don't flip the parent's operational state), which means
|
|
||||||
// a sync push of fork-pulled YAMLs would otherwise call setEnabled
|
|
||||||
// with `enabled: undefined` and the backend would reject the body.
|
|
||||||
if (
|
|
||||||
localSchedule.enabled !== undefined &&
|
|
||||||
localSchedule.enabled !== schedule.enabled
|
|
||||||
) {
|
|
||||||
log.info(colors.bold.yellow(
|
log.info(colors.bold.yellow(
|
||||||
`Schedule ${path} is ${localSchedule.enabled ? "enabled" : "disabled"} locally but not on remote, updating remote`
|
`Schedule ${path} is ${localSchedule.enabled ? "enabled" : "disabled"} locally but not on remote, updating remote`
|
||||||
));
|
));
|
||||||
|
|||||||
Reference in New Issue
Block a user