[Feature Request] Add `patch` to schedule command

Ouverte
#939 1 commentaire 2 réactions 1 personne assignée Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

@chaptersix y travaille déjà.

Depuis le 4/8/2026.

Évaluation

Cette issue n'a pas encore été évaluée.

Description

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
Langage dominant
Go
Étoiles
390
Forks
123
Merge moyen
2 j 9 h
PR mergées (30 j)
13

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de temporalio/cli

Toutes les issues de temporalio/cli

Issues similaires

Plus d'issues Go

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.