[Feature Request] Add `patch` to schedule command

オープン
#939 コメント 1 件 リアクション 2 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@chaptersix がすでに取り組んでいます。

2026年8月4日 から。

評価

この issue はまだ評価されていません。

説明

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
主要言語
Go
スター
390
フォーク
123
平均マージ
2日 9時間
マージ済み PR(30日)
13

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

temporalio/cli のほかの issue

temporalio/cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。