cli
cli copied to clipboard
Log when a new WE fails to start
Is your feature request related to a problem? Please describe.
Currently, when I start a WE with the same ID twice, the second time appears to succeed (prints info about a WE and 0 exit status).
Describe the solution you'd like
Print:
An execution with that ID is already running:
<workflow info>
And maybe a non-zero exit code?
Additional context

Also, the second command should call Describe, not use the command-line input.
This behavior was ported from tctl but I agree it's not ideal.
hm... I can easily imagine people wanting idempotent behavior from this command (e.g. if they're running it in a script); I wonder if we could instead add a flag to govern the behavior if the workflow is already running—something that maps to the workflow ID reuse policy: https://github.com/temporalio/api/blob/a19522ade6a4e3ee120cc3e7c8390bb9b4aecf75/temporal/api/enums/v1/workflow.proto#L36