langflow icon indicating copy to clipboard operation
langflow copied to clipboard

langflow flow error:”Job not found: Job queue not found for job_id:“

Open lianlian1212 opened this issue 1 year ago • 7 comments

All flows configured in langflow report this error when buildding

Error:Job not found: Job queue not found for job_id: Image

I don't know if this configuration has any effect. env: LANGFLOW_NUM_WORKERS=2

langflow version:1.3.2

lianlian1212 avatar Apr 11 '25 03:04 lianlian1212

你好,@lianlian1212!我是一个可以帮助你解决错误、回答问题并成为贡献者的机器人。在人类维护者到达之前,我会在这里支持你。期待一起解决问题!🤖

A similar open issue was found regarding the error "No queue found for job_id" [1]. The suggested solution is to ensure that the job_id is correctly initialized and added to the _queues dictionary within the service.py file before trying to access its data. Additionally, verify that the queue service is not closed, as accessing a closed queue service will also result in an error. The cleanup process might have removed the job entry if the associated tasks were completed or cancelled.

Regarding the LANGFLOW_NUM_WORKERS environment variable, I couldn't find specific information on its role in Langflow's job processing, but it might be related to the number of workers handling job queues. You might want to experiment with different values to see if it affects the issue.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

dosubot[bot] avatar Apr 11 '25 03:04 dosubot[bot]

@lianlian1212 Please reduce the number of workers to 1 — that should resolve the issue. It's actually a bug, but using a single worker is a temporary workaround for now.

vikas-df avatar Apr 11 '25 04:04 vikas-df

https://github.com/langflow-ai/langflow/pull/7435

saber-wang avatar Apr 11 '25 08:04 saber-wang

i have num_worker =1 , still i am facing the same issue "Job queue not found for job_id". please suggest some solution to it..

dushyants avatar Jun 13 '25 14:06 dushyants

I have only one worker, but the same error occurs when I increase the number of replicas.

Job not found:  d7da393d-3895-491d-867c-xxxxx       
Error: Job queue not found for job_id: d7da393d-3895-491d-867c-xxxxx

restato avatar Jun 16 '25 01:06 restato

@restato This environment variable can be added. LANGFLOW_EVENT_DELIVERY=direct

lianlian1212 avatar Jun 25 '25 03:06 lianlian1212

@lianlian1212 This issue was fixed in version 1.4. In the latest release, you can now use as many workers as you need.

Empreiteiro avatar Aug 08 '25 12:08 Empreiteiro