temporalio / cli

Command-line interface for running Temporal Server and interacting with Workflows, Activities, Namespaces, and other parts of Temporal
https://docs.temporal.io/cli
MIT License
251 stars 36 forks source link

Add AssignedBuildId to workflow describe #559

Closed ShahabT closed 4 months ago

ShahabT commented 4 months ago

What was changed

workflow describe now shows WF's assigned build ID as follows:

$temporal --env shahab-test4 workflow describe --workflow-id b72b1a82-7a83-4cc9-9bde-6ad8d411a47c      
Execution Info:
  WorkflowId            b72b1a82-7a83-4cc9-9bde-6ad8d411a47c
  RunId                 c81a42c2-efc1-4c41-9088-a0123c0d1034
  Type                  MyWorkflow
  Namespace             shahab-test4.temporal-dev
  TaskQueue             my-tq
  AssignedBuildId       BUILD_ID_HERE
  StartTime             4 hours ago
  ExecutionTime         4 hours ago
  SearchAttributes      map[BuildIds:metadata:{key:"encoding" value:"json/plain"} metadata:{key:"type" value:"KeywordList"} data:"[\"assigned:C\",\"versioned:C\"]"]
  StateTransitionCount  2
  HistoryLength         2
  HistorySize           263

Why?

This is an important attribute for WFs running on versioned workers.

Checklist

  1. Closes

  2. How was this tested:

    Unit test added.

  3. Any docs updates needed?

    No.

CLAassistant commented 4 months ago

CLA assistant check
All committers have signed the CLA.

ShahabT commented 4 months ago

Waiting for https://github.com/temporalio/cli/pull/556 to merge first.