Terminated Workflow still show as Running on the UI

Workflow Appears in Open List Even After Termination
Hi everyone,

I’m encountering an issue where a workflow that I terminated via the Web UI is still appearing in the open workflows list. However, when I check the workflow history, it clearly shows a WorkflowExecutionTerminated event.

Workflow Details

Here’s the workflow execution history:

tctl workflow show --workflow_id test-postgres-1678469956-cron-1740362400 --run_id 87f196c0-3753-4ddf-96c5-41db30b2673a

Output:

  1  WorkflowExecutionStarted     {WorkflowType:{Name:PostgresMetadataExtractionWorkflow},
                                   ParentInitiatedEventId:0,
                                   TaskQueue:{Name:test-postgres-1678469956-cron-1740362400, Kind:Normal},
                                   Input:[{"workflow_id":"test-postgres-1678469956-cron-1740362400"}],
                                   WorkflowTaskTimeout:10s, Initiator:Unspecified,
                                   OriginalExecutionRunId:87f196c0-3753-4ddf-96c5-41db30b2673a,
                                   Identity:41@test-postgres-1678469956-cron-1740362400-crossover-extract-and,
                                   FirstExecutionRunId:87f196c0-3753-4ddf-96c5-41db30b2673a, Attempt:1,
                                   FirstWorkflowTaskBackoff:0s, ParentInitiatedEventVersion:0}
  2  WorkflowTaskScheduled        {TaskQueue:{Name:test-postgres-1678469956-cron-1740362400,
                                   Kind:Normal}, StartToCloseTimeout:10s, Attempt:1}
  3  WorkflowExecutionTerminated  {Reason:Terminated from the Web UI}

However, when I check the list of open workflows, it is still present:

tctl workflow list --open

Output:

WORKFLOW TYPE                            | WORKFLOW ID                                       | RUN ID
------------------------------------------|--------------------------------------------------|--------------------------------------
PostgresMetadataExtractionWorkflow        | test-postgres-1678469956-cron-1740362400         | 87f196c0-3753-4ddf-96c5-41db30b2673a

What I’ve Tried:

  1. Running tctl workflow terminate --workflow_id test-postgres-1678469956-cron-1740362400 again → No change.
  2. Restarting Temporal and UI and other services → The workflow still appears in the open list.

Any insights would be greatly appreciated! Thanks in advance.

We are seeing the same thing