fix: schedule create/update drop priority/fairness flags

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

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

@ks-temporal がすでに取り組んでいます。

2026年6月11日 から。

  • #1085 @NasitSony による — オープン

評価

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

説明

Bug

temporal schedule create and temporal schedule update accept --priority-key, --fairness-key, and --fairness-weight flags (via SharedWorkflowStartOptions) but silently discard them. The values never reach the server.

Root cause

toScheduleAction in internal/temporalcli/commands.schedule.go calls buildStartOptions, which correctly populates opts.Priority, but the resulting client.ScheduleWorkflowAction literal does not include the Priority field:

action := &client.ScheduleWorkflowAction{
    ID:                       opts.ID,
    Workflow:                 sw.Type,
    TaskQueue:                opts.TaskQueue,
    WorkflowExecutionTimeout: opts.WorkflowExecutionTimeout,
    WorkflowRunTimeout:       opts.WorkflowRunTimeout,
    WorkflowTaskTimeout:      opts.WorkflowTaskTimeout,
    UntypedSearchAttributes:  untypedSearchAttributes,
    Memo:                     opts.Memo,
    StaticSummary:            opts.StaticSummary,
    StaticDetails:            opts.StaticDetails,
    // Priority: opts.Priority  <-- missing
}

client.ScheduleWorkflowAction does have a Priority field in the SDK (confirmed in go.temporal.io/[email protected]).

Fix

Add Priority: opts.Priority to the ScheduleWorkflowAction struct literal in toScheduleAction. This fixes both schedule create and schedule update since they share the same function.

Also

schedule describe text output (printableSchedule) does not surface the priority field. JSON output works correctly via raw proto passthrough.

主要言語
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 を短くまとめたダイジェスト。