From 5f7a9962aab16f8933b6b4f43b8a4f0db698a5d1 Mon Sep 17 00:00:00 2001 From: Chetan Gowda Date: Mon, 5 Jan 2026 21:04:22 -0800 Subject: [PATCH 1/2] Show paused info in workflow describe --- temporalcli/commands.workflow_pause.go | 1 - temporalcli/commands.workflow_view.go | 12 ++++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/temporalcli/commands.workflow_pause.go b/temporalcli/commands.workflow_pause.go index ccbb0d99e..9a8fff4f3 100644 --- a/temporalcli/commands.workflow_pause.go +++ b/temporalcli/commands.workflow_pause.go @@ -13,7 +13,6 @@ func (c *TemporalWorkflowPauseCommand) run(cctx *CommandContext, args []string) _, err = cl.WorkflowService().PauseWorkflowExecution(cctx, &workflowservice.PauseWorkflowExecutionRequest{ Namespace: c.Parent.Namespace, - Reason: c.Reason, WorkflowId: c.WorkflowId, RunId: c.RunId, Identity: c.Parent.Identity, diff --git a/temporalcli/commands.workflow_view.go b/temporalcli/commands.workflow_view.go index 896bd76ef..23cdccc94 100644 --- a/temporalcli/commands.workflow_view.go +++ b/temporalcli/commands.workflow_view.go @@ -161,6 +161,18 @@ func (c *TemporalWorkflowDescribeCommand) run(cctx *CommandContext, args []strin OriginalStartTime: timestampToTime(extendedInfo.OriginalStartTime), }, printer.StructuredOptions{}) } + if extendedInfo != nil && extendedInfo.PauseInfo != nil { + cctx.Printer.Println(color.MagentaString("Pause Info:")) + _ = cctx.Printer.PrintStructured(struct { + Identity string `cli:",cardOmitEmpty"` + Reason string `cli:",cardOmitEmpty"` + PausedTime time.Time `cli:",cardOmitEmpty"` + }{ + Identity: extendedInfo.PauseInfo.GetIdentity(), + Reason: extendedInfo.PauseInfo.GetReason(), + PausedTime: timestampToTime(extendedInfo.PauseInfo.GetPausedTime()), + }, printer.StructuredOptions{}) + } staticSummary := resp.GetExecutionConfig().GetUserMetadata().GetSummary() staticDetails := resp.GetExecutionConfig().GetUserMetadata().GetDetails() From f0646bde8c5dfa8dd43a132c7b9f05023b8e1160 Mon Sep 17 00:00:00 2001 From: Chetan Gowda Date: Mon, 5 Jan 2026 22:12:05 -0800 Subject: [PATCH 2/2] Add reason to pause command --- temporalcli/commands.workflow_pause.go | 1 + 1 file changed, 1 insertion(+) diff --git a/temporalcli/commands.workflow_pause.go b/temporalcli/commands.workflow_pause.go index 9a8fff4f3..988055537 100644 --- a/temporalcli/commands.workflow_pause.go +++ b/temporalcli/commands.workflow_pause.go @@ -16,6 +16,7 @@ func (c *TemporalWorkflowPauseCommand) run(cctx *CommandContext, args []string) WorkflowId: c.WorkflowId, RunId: c.RunId, Identity: c.Parent.Identity, + Reason: c.Reason, }) if err != nil { return err