temporalio / temporalio/cli

fix: schedule create/update drop priority/fairness flags

Open
#1,028 0 comments 0 reactions 1 assignee View on GitHub

@ks-temporal is already working on this.

Since Jun 11, 2026.

Dominant language
Go
Stars
379
Forks
103
Avg merge
2d 11h
Merged PRs (30d)
23

Description

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/sdk@v1.41.1).

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.