Temporal UI (local) is just showing 8 running workflows at a time

Hi all,

Temporal UI (local) is just showing 8 running workflows at a time.
9th workflow is not showing up.
When a signal is sent to the 9th workflow, WorkflowNotFoundException is thrown.

But after terminating one of the 8 running workflows, the 9th one shows up.

Is there any limit to the number of workflows that can be run at a time?

Temporal version used is 1.23.2

Thanks,
Joe

There is no limit on the number of open workflows. My guess is that the code that starts workflows is blocked on something.

Hi @maxim,

While checking the Temporal server logs, I am seeing the following error message:
"msg":"service failures","operation":"StartWorkflowExecution","wf-namespace":"temporal-system","error":"Not enough hosts to serve the request"

Could this be the issue?

Thanks,
Joe

It looks like your service is not configured correctly. How do you run it?

Hi @maxim,

I am running a Spring Boot application locally.
For starting worker and executing workflow, I have taken reference from HelloActivity.java.

For starting the Temporal server, I am using the below command:
temporal server start-dev --dynamic-config-value frontend.enableUpdateWorkflowExecution=true

Thanks,
Joe

I’m not sure what could cause this. Have you tried upgrading the temporal version?

brew upgrade temporal?

Yes, I am running on:
temporal version 0.11.0 (server 1.22.4) (ui 2.21.3)

I don’t think your issue is caused by the service. Have you checked your starter code?

Hi @maxim,

Figured out the issue: The controller used to trigger the workflow was annotated with @Async, but the workflow was started synchronously. It seems like there is some thread limit associated with using @Async.

Starting the workflow asynchronously did the trick.

Thanks,
Joe

1 Like