[Feature Request] Add `patch` to schedule command

Offen
#939 1 Kommentar 2 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@chaptersix arbeitet bereits daran.

Seit 04.8.2026.

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

enhancement
Is your feature request related to a problem? Please describe.

I noticed that when updating a scheduled workflow with the cli, if I don't provide exactly all input it will be overwritten (empty). This is fine I guess as it's how update usually behaves. I would however like to have a patch command for schedules so I don't need to provide everything again.

Describe the solution you'd like

When I do temporal schedule patch --schedule_id abc I want the command to keep the schedule exactly the same, except for the arguments I pass.

Given the following schedule

Schedule ID: abc
Input: "hello"
Schedule spec:
[
  {
    "interval": "360s",
    "phase": "0s"
  }
]

Performing the following executions on the given schedule:
Example 1
temporal schedule patch --schedule_id abc --input 'goodbye'

Schedule ID: abc
Input: "goodbye"
Schedule spec:
[
  {
    "interval": "360s",
    "phase": "0s"
  }
]

Example 2
temporal schedule patch --schedule_id abc --interval 1m would leave the input intact

Schedule ID: abc
Input: "hello"
Schedule spec:
[
  {
    "interval": "60s",
    "phase": "0s"
  }
]

Example 3
This example is using --headers which are only available on the version built from source.
temporal schedule patch --schedule_id abc --headers 'MyHeader={"Key":123}' would leave both

Schedule ID: abc
Input: "hello"
Schedule spec:
[
  {
    "interval": "360s",
    "phase": "0s"
  }
]
Headers: MyHeader={"Key": 123}
Additional context
Vorherrschende Sprache
Go
Sterne
390
Forks
123
Ø Merge
2 T. 9 Std.
Gemergte PRs (30 T.)
13

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus temporalio/cli

Alle Issues in temporalio/cli

Ähnliche Issues

Weitere Issues zu Go

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.