fix: schedule create/update drop priority/fairness flags
维护者通常 1 天内回复
评估
这个 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 小时
- 30 天内合并 PR
- 13
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
temporalio/cli 的其他 Issue
-
enhancement
难度 1/5 1 小时以内 新手友好度 70/100
temporalio/cli#776 ·
维护者通常 1 天内回复
-
[Feature Request] Option to disable metrics in server start-dev可能已有人在做 @shafiktanbir 于 11 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 67/100
temporalio/cli#1274 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 58/100
temporalio/cli#1249 · 1 条评论 ·
维护者通常 1 天内回复
-
[Feature Request] Decode workflow histories concurrently with remote codec servers可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭enhancement
难度 4/5 3-5 天 新手友好度 65/100
temporalio/cli#1193 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 38/100
temporalio/cli#1178 · 1 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 82/100
维护者通常 1 天内回复
-
tech-debt
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
seriousm4x/UpSnap#1786 ·
-
enhancement security
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
bug feedback ui/ux
难度 2/5 1-3 小时 新手友好度 67/100
peasant-labs/peasant#1307 ·
维护者通常 1 天内回复