From bc7c4a89c346e859015d299e58a000455e54a05f Mon Sep 17 00:00:00 2001 From: Lenny Chen Date: Wed, 11 Feb 2026 14:31:32 -0800 Subject: [PATCH 1/4] docs: remove formatting changes --- internal/temporalcli/commands.gen.go | 4 ++-- internal/temporalcli/commands.yaml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/internal/temporalcli/commands.gen.go b/internal/temporalcli/commands.gen.go index 8682b415b..0bf1b9b1a 100644 --- a/internal/temporalcli/commands.gen.go +++ b/internal/temporalcli/commands.gen.go @@ -2019,9 +2019,9 @@ func NewTemporalScheduleUpdateCommand(cctx *CommandContext, parent *TemporalSche s.Command.Use = "update [flags]" s.Command.Short = "Update Schedule details" if hasHighlighting { - s.Command.Long = "Update an existing Schedule with new configuration details, including time\nspecifications, action, and policies:\n\n\x1b[1mtemporal schedule update \\\n --schedule-id \"YourScheduleId\" \\\n --workflow-type \"NewWorkflowType\"\x1b[0m" + s.Command.Long = "Update an existing Schedule with new configuration details, including time\nspecifications, action, and policies:\n\n\x1b[1mtemporal schedule update \\\n --schedule-id \"YourScheduleId\" \\\n --workflow-type \"NewWorkflowType\"\x1b[0m\n\nNote: This command performs a full replacement of the Schedule\nconfiguration. Any options not provided will be reset to their default\nvalues. You must re-specify all options, not just the ones you want to\nchange. To view the current configuration of a Schedule, use\n\x1b[1mtemporal schedule describe\x1b[0m before updating." } else { - s.Command.Long = "Update an existing Schedule with new configuration details, including time\nspecifications, action, and policies:\n\n```\ntemporal schedule update \\\n --schedule-id \"YourScheduleId\" \\\n --workflow-type \"NewWorkflowType\"\n```" + s.Command.Long = "Update an existing Schedule with new configuration details, including time\nspecifications, action, and policies:\n\n```\ntemporal schedule update \\\n --schedule-id \"YourScheduleId\" \\\n --workflow-type \"NewWorkflowType\"\n```\n\nNote: This command performs a full replacement of the Schedule\nconfiguration. Any options not provided will be reset to their default\nvalues. You must re-specify all options, not just the ones you want to\nchange. To view the current configuration of a Schedule, use\n`temporal schedule describe` before updating." } s.Command.Args = cobra.NoArgs s.ScheduleConfigurationOptions.BuildFlags(s.Command.Flags()) diff --git a/internal/temporalcli/commands.yaml b/internal/temporalcli/commands.yaml index ce311b230..e4bbd5bca 100644 --- a/internal/temporalcli/commands.yaml +++ b/internal/temporalcli/commands.yaml @@ -2240,6 +2240,12 @@ commands: --schedule-id "YourScheduleId" \ --workflow-type "NewWorkflowType" ``` + + Note: This command performs a full replacement of the Schedule + configuration. Any options not provided will be reset to their default + values. You must re-specify all options, not just the ones you want to + change. To view the current configuration of a Schedule, use + `temporal schedule describe` before updating. option-sets: - schedule-configuration - schedule-id From 2e6316183795041eb6e49d7453e99bcc32df7eb8 Mon Sep 17 00:00:00 2001 From: Lenny Chen Date: Wed, 11 Feb 2026 14:34:37 -0800 Subject: [PATCH 2/4] small edit --- internal/temporalcli/commands.gen.go | 4 ++-- internal/temporalcli/commands.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/temporalcli/commands.gen.go b/internal/temporalcli/commands.gen.go index 0bf1b9b1a..b44dff8b0 100644 --- a/internal/temporalcli/commands.gen.go +++ b/internal/temporalcli/commands.gen.go @@ -2019,9 +2019,9 @@ func NewTemporalScheduleUpdateCommand(cctx *CommandContext, parent *TemporalSche s.Command.Use = "update [flags]" s.Command.Short = "Update Schedule details" if hasHighlighting { - s.Command.Long = "Update an existing Schedule with new configuration details, including time\nspecifications, action, and policies:\n\n\x1b[1mtemporal schedule update \\\n --schedule-id \"YourScheduleId\" \\\n --workflow-type \"NewWorkflowType\"\x1b[0m\n\nNote: This command performs a full replacement of the Schedule\nconfiguration. Any options not provided will be reset to their default\nvalues. You must re-specify all options, not just the ones you want to\nchange. To view the current configuration of a Schedule, use\n\x1b[1mtemporal schedule describe\x1b[0m before updating." + s.Command.Long = "Update an existing Schedule with new configuration details, including time\nspecifications, action, and policies:\n\n\x1b[1mtemporal schedule update \\\n --schedule-id \"YourScheduleId\" \\\n --workflow-type \"NewWorkflowType\"\x1b[0m\n\nThis command performs a full replacement of the Schedule\nconfiguration. Any options not provided will be reset to their default\nvalues. You must re-specify all options, not just the ones you want to\nchange. To view the current configuration of a Schedule, use\n\x1b[1mtemporal schedule describe\x1b[0m before updating." } else { - s.Command.Long = "Update an existing Schedule with new configuration details, including time\nspecifications, action, and policies:\n\n```\ntemporal schedule update \\\n --schedule-id \"YourScheduleId\" \\\n --workflow-type \"NewWorkflowType\"\n```\n\nNote: This command performs a full replacement of the Schedule\nconfiguration. Any options not provided will be reset to their default\nvalues. You must re-specify all options, not just the ones you want to\nchange. To view the current configuration of a Schedule, use\n`temporal schedule describe` before updating." + s.Command.Long = "Update an existing Schedule with new configuration details, including time\nspecifications, action, and policies:\n\n```\ntemporal schedule update \\\n --schedule-id \"YourScheduleId\" \\\n --workflow-type \"NewWorkflowType\"\n```\n\nThis command performs a full replacement of the Schedule\nconfiguration. Any options not provided will be reset to their default\nvalues. You must re-specify all options, not just the ones you want to\nchange. To view the current configuration of a Schedule, use\n`temporal schedule describe` before updating." } s.Command.Args = cobra.NoArgs s.ScheduleConfigurationOptions.BuildFlags(s.Command.Flags()) diff --git a/internal/temporalcli/commands.yaml b/internal/temporalcli/commands.yaml index e4bbd5bca..c6cb8097f 100644 --- a/internal/temporalcli/commands.yaml +++ b/internal/temporalcli/commands.yaml @@ -2241,7 +2241,7 @@ commands: --workflow-type "NewWorkflowType" ``` - Note: This command performs a full replacement of the Schedule + This command performs a full replacement of the Schedule configuration. Any options not provided will be reset to their default values. You must re-specify all options, not just the ones you want to change. To view the current configuration of a Schedule, use From 3712a3f1cf9172b619a451bc8f00ecd2a105ae99 Mon Sep 17 00:00:00 2001 From: Lenny Chen Date: Fri, 13 Feb 2026 14:29:25 -0800 Subject: [PATCH 3/4] docs: remove schedule memo and search attributes from update options --- internal/temporalcli/commands.gen.go | 44 +++++++++++++++++----------- internal/temporalcli/commands.yaml | 8 +++++ 2 files changed, 35 insertions(+), 17 deletions(-) diff --git a/internal/temporalcli/commands.gen.go b/internal/temporalcli/commands.gen.go index b44dff8b0..d10fd69cb 100644 --- a/internal/temporalcli/commands.gen.go +++ b/internal/temporalcli/commands.gen.go @@ -39,21 +39,19 @@ func (v *ScheduleIdOptions) BuildFlags(f *pflag.FlagSet) { } type ScheduleConfigurationOptions struct { - Calendar []string - CatchupWindow cliext.FlagDuration - Cron []string - EndTime cliext.FlagTimestamp - Interval []string - Jitter cliext.FlagDuration - Notes string - Paused bool - PauseOnFailure bool - RemainingActions int - StartTime cliext.FlagTimestamp - TimeZone string - ScheduleSearchAttribute []string - ScheduleMemo []string - FlagSet *pflag.FlagSet + Calendar []string + CatchupWindow cliext.FlagDuration + Cron []string + EndTime cliext.FlagTimestamp + Interval []string + Jitter cliext.FlagDuration + Notes string + Paused bool + PauseOnFailure bool + RemainingActions int + StartTime cliext.FlagTimestamp + TimeZone string + FlagSet *pflag.FlagSet } func (v *ScheduleConfigurationOptions) BuildFlags(f *pflag.FlagSet) { @@ -72,6 +70,16 @@ func (v *ScheduleConfigurationOptions) BuildFlags(f *pflag.FlagSet) { f.IntVar(&v.RemainingActions, "remaining-actions", 0, "Total allowed actions. Default is zero (unlimited).") f.Var(&v.StartTime, "start-time", "Schedule start time.") f.StringVar(&v.TimeZone, "time-zone", "", "Interpret calendar specs with the `TZ` time zone. For a list of time zones, see: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.") +} + +type ScheduleCreateOnlyOptions struct { + ScheduleSearchAttribute []string + ScheduleMemo []string + FlagSet *pflag.FlagSet +} + +func (v *ScheduleCreateOnlyOptions) BuildFlags(f *pflag.FlagSet) { + v.FlagSet = f f.StringArrayVar(&v.ScheduleSearchAttribute, "schedule-search-attribute", nil, "Set schedule Search Attributes using `KEY=\"VALUE` pairs. Keys must be identifiers, and values must be JSON values. For example: 'YourKey={\"your\": \"value\"}'. Can be passed multiple times.") f.StringArrayVar(&v.ScheduleMemo, "schedule-memo", nil, "Set schedule memo using `KEY=\"VALUE` pairs. Keys must be identifiers, and values must be JSON values. For example: 'YourKey={\"your\": \"value\"}'. Can be passed multiple times.") } @@ -1821,6 +1829,7 @@ type TemporalScheduleCreateCommand struct { Parent *TemporalScheduleCommand Command cobra.Command ScheduleConfigurationOptions + ScheduleCreateOnlyOptions ScheduleIdOptions OverlapPolicyOptions SharedWorkflowStartOptions @@ -1840,6 +1849,7 @@ func NewTemporalScheduleCreateCommand(cctx *CommandContext, parent *TemporalSche } s.Command.Args = cobra.NoArgs s.ScheduleConfigurationOptions.BuildFlags(s.Command.Flags()) + s.ScheduleCreateOnlyOptions.BuildFlags(s.Command.Flags()) s.ScheduleIdOptions.BuildFlags(s.Command.Flags()) s.OverlapPolicyOptions.BuildFlags(s.Command.Flags()) s.SharedWorkflowStartOptions.BuildFlags(s.Command.Flags()) @@ -2019,9 +2029,9 @@ func NewTemporalScheduleUpdateCommand(cctx *CommandContext, parent *TemporalSche s.Command.Use = "update [flags]" s.Command.Short = "Update Schedule details" if hasHighlighting { - s.Command.Long = "Update an existing Schedule with new configuration details, including time\nspecifications, action, and policies:\n\n\x1b[1mtemporal schedule update \\\n --schedule-id \"YourScheduleId\" \\\n --workflow-type \"NewWorkflowType\"\x1b[0m\n\nThis command performs a full replacement of the Schedule\nconfiguration. Any options not provided will be reset to their default\nvalues. You must re-specify all options, not just the ones you want to\nchange. To view the current configuration of a Schedule, use\n\x1b[1mtemporal schedule describe\x1b[0m before updating." + s.Command.Long = "Update an existing Schedule with new configuration details, including time\nspecifications, action, and policies:\n\n\x1b[1mtemporal schedule update \\\n --schedule-id \"YourScheduleId\" \\\n --workflow-type \"NewWorkflowType\"\x1b[0m\n\nThis command performs a full replacement of the Schedule\nconfiguration. Any options not provided will be reset to their default\nvalues. You must re-specify all options, not just the ones you want to\nchange. To view the current configuration of a Schedule, use\n\x1b[1mtemporal schedule describe\x1b[0m before updating.\n\nSchedule-level memo and search attributes cannot be updated with this\ncommand. They are set only during Schedule creation and are not affected\nby updates." } else { - s.Command.Long = "Update an existing Schedule with new configuration details, including time\nspecifications, action, and policies:\n\n```\ntemporal schedule update \\\n --schedule-id \"YourScheduleId\" \\\n --workflow-type \"NewWorkflowType\"\n```\n\nThis command performs a full replacement of the Schedule\nconfiguration. Any options not provided will be reset to their default\nvalues. You must re-specify all options, not just the ones you want to\nchange. To view the current configuration of a Schedule, use\n`temporal schedule describe` before updating." + s.Command.Long = "Update an existing Schedule with new configuration details, including time\nspecifications, action, and policies:\n\n```\ntemporal schedule update \\\n --schedule-id \"YourScheduleId\" \\\n --workflow-type \"NewWorkflowType\"\n```\n\nThis command performs a full replacement of the Schedule\nconfiguration. Any options not provided will be reset to their default\nvalues. You must re-specify all options, not just the ones you want to\nchange. To view the current configuration of a Schedule, use\n`temporal schedule describe` before updating.\n\nSchedule-level memo and search attributes cannot be updated with this\ncommand. They are set only during Schedule creation and are not affected\nby updates." } s.Command.Args = cobra.NoArgs s.ScheduleConfigurationOptions.BuildFlags(s.Command.Flags()) diff --git a/internal/temporalcli/commands.yaml b/internal/temporalcli/commands.yaml index c6cb8097f..9cdac948e 100644 --- a/internal/temporalcli/commands.yaml +++ b/internal/temporalcli/commands.yaml @@ -2122,6 +2122,7 @@ commands: For example, every Friday at 12:30 PM: `30 12 * * Fri`. option-sets: - schedule-configuration + - schedule-create-only - schedule-id - overlap-policy - shared-workflow-start @@ -2246,6 +2247,10 @@ commands: values. You must re-specify all options, not just the ones you want to change. To view the current configuration of a Schedule, use `temporal schedule describe` before updating. + + Schedule-level memo and search attributes cannot be updated with this + command. They are set only during Schedule creation and are not affected + by updates. option-sets: - schedule-configuration - schedule-id @@ -4357,6 +4362,9 @@ option-sets: Interpret calendar specs with the `TZ` time zone. For a list of time zones, see: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones. + + - name: schedule-create-only + options: - name: schedule-search-attribute type: string[] description: | From 8f916d5be91b243b4e963bf0c2b6419ddf1b990a Mon Sep 17 00:00:00 2001 From: Lenny Chen Date: Fri, 13 Feb 2026 15:04:43 -0800 Subject: [PATCH 4/4] small edit --- internal/temporalcli/commands.gen.go | 4 ++-- internal/temporalcli/commands.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/temporalcli/commands.gen.go b/internal/temporalcli/commands.gen.go index d10fd69cb..1b1f31295 100644 --- a/internal/temporalcli/commands.gen.go +++ b/internal/temporalcli/commands.gen.go @@ -2029,9 +2029,9 @@ func NewTemporalScheduleUpdateCommand(cctx *CommandContext, parent *TemporalSche s.Command.Use = "update [flags]" s.Command.Short = "Update Schedule details" if hasHighlighting { - s.Command.Long = "Update an existing Schedule with new configuration details, including time\nspecifications, action, and policies:\n\n\x1b[1mtemporal schedule update \\\n --schedule-id \"YourScheduleId\" \\\n --workflow-type \"NewWorkflowType\"\x1b[0m\n\nThis command performs a full replacement of the Schedule\nconfiguration. Any options not provided will be reset to their default\nvalues. You must re-specify all options, not just the ones you want to\nchange. To view the current configuration of a Schedule, use\n\x1b[1mtemporal schedule describe\x1b[0m before updating.\n\nSchedule-level memo and search attributes cannot be updated with this\ncommand. They are set only during Schedule creation and are not affected\nby updates." + s.Command.Long = "Update an existing Schedule with new configuration details, including time\nspecifications, action, and policies:\n\n\x1b[1mtemporal schedule update \\\n --schedule-id \"YourScheduleId\" \\\n --workflow-type \"NewWorkflowType\"\x1b[0m\n\nThis command performs a full replacement of the Schedule\nconfiguration. Any options not provided will be reset to their default\nvalues. You must re-specify all options, not just the ones you want to\nchange. To view the current configuration of a Schedule, use\n\x1b[1mtemporal schedule describe\x1b[0m before updating.\n\nSchedule memo and search attributes cannot be updated with this\ncommand. They are set only during Schedule creation and are not affected\nby updates." } else { - s.Command.Long = "Update an existing Schedule with new configuration details, including time\nspecifications, action, and policies:\n\n```\ntemporal schedule update \\\n --schedule-id \"YourScheduleId\" \\\n --workflow-type \"NewWorkflowType\"\n```\n\nThis command performs a full replacement of the Schedule\nconfiguration. Any options not provided will be reset to their default\nvalues. You must re-specify all options, not just the ones you want to\nchange. To view the current configuration of a Schedule, use\n`temporal schedule describe` before updating.\n\nSchedule-level memo and search attributes cannot be updated with this\ncommand. They are set only during Schedule creation and are not affected\nby updates." + s.Command.Long = "Update an existing Schedule with new configuration details, including time\nspecifications, action, and policies:\n\n```\ntemporal schedule update \\\n --schedule-id \"YourScheduleId\" \\\n --workflow-type \"NewWorkflowType\"\n```\n\nThis command performs a full replacement of the Schedule\nconfiguration. Any options not provided will be reset to their default\nvalues. You must re-specify all options, not just the ones you want to\nchange. To view the current configuration of a Schedule, use\n`temporal schedule describe` before updating.\n\nSchedule memo and search attributes cannot be updated with this\ncommand. They are set only during Schedule creation and are not affected\nby updates." } s.Command.Args = cobra.NoArgs s.ScheduleConfigurationOptions.BuildFlags(s.Command.Flags()) diff --git a/internal/temporalcli/commands.yaml b/internal/temporalcli/commands.yaml index 9cdac948e..d293b75f8 100644 --- a/internal/temporalcli/commands.yaml +++ b/internal/temporalcli/commands.yaml @@ -2248,7 +2248,7 @@ commands: change. To view the current configuration of a Schedule, use `temporal schedule describe` before updating. - Schedule-level memo and search attributes cannot be updated with this + Schedule memo and search attributes cannot be updated with this command. They are set only during Schedule creation and are not affected by updates. option-sets: