fix: schedule create/update drop priority/fairness flags

Offen
#1,028 0 Kommentare 0 Reaktionen 1 zugewiesene Person Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@ks-temporal arbeitet bereits daran.

Seit 11.6.2026.

  • #1085 von @NasitSony — offen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Beschreibung

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.

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.