You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
[FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
Please do not modify this template :) and fill in all the required fields.
Dify version
0.13.2
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
The error 'ValueError: Max submit count 100 of workflow thread pool reached' easily happens if input to the iteration node is long to some extent.
Example condition:
iteration node has parallel mode with maximum parallelism>= 2
input to the iteration node >=101
run the workflow, then terminates with error saying Max submit count 100 of workflow thread pool reached.
Please see captures.
This never happens for single thread mode.
Although I am not sure the role of max_submit_count, this behavior is obviously wired and should be enhanced so that all the thread is created simultaneously.
Attached is the very easy sample workflow. workflow.zip
✔️ Expected Behavior
Workflows should be successful even if input length is large.
❌ Actual Behavior
Input length to iteration node with parallel mode fails 100%.
The text was updated successfully, but these errors were encountered:
The error you're encountering, "Max submit count 100 of workflow thread pool reached," is due to the GraphEngineThreadPool class having a max_submit_count set to 100. This limits the number of tasks that can be submitted simultaneously in parallel mode. When your input array length exceeds 100, it surpasses this limit, causing the error.
To resolve this, you can increase the max_submit_count when initializing the GraphEngineThreadPool. Modify the initialization to allow more tasks by setting desired_max_submit_count to a value greater than 100:
Additionally, consider that the iteration node in parallel mode supports up to 10 concurrent iterations. If processing more than 10 tasks, the first 10 execute simultaneously, with the rest processed after completion of the initial batch. Adjust your workflow to handle tasks in batches of 10 or increase the max_submit_count if your system supports it [1][2].
Self Checks
Dify version
0.13.2
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
The error 'ValueError: Max submit count 100 of workflow thread pool reached' easily happens if input to the iteration node is long to some extent.
Example condition:
Please see captures.
![image](https://private-user-images.githubusercontent.com/153587838/395849479-a81ae487-8253-4043-895a-e7cfb61836c3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWI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4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQxMDA3MTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wNTkzMWFjYTk4MGQ3ODM1YTdhOWZmNDNjOWE4ZjZjMDMyZWQzNzNiOGM4ZTAyN2IyMTJlYTM4Nzg4ZjVkZTk0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.FIdPswV08Qe_JAN7BFMffCMGcTKB0mtzeTrvetyJ2Ac)
![image](https://private-user-images.githubusercontent.com/153587838/395849560-60def1a3-d1f9-4ddc-83e6-db4ac83ed630.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwMDk1MzAsIm5iZiI6MTczOTAwOTIzMCwicGF0aCI6Ii8xNTM1ODc4MzgvMzk1ODQ5NTYwLTYwZGVmMWEzLWQxZjktNGRkYy04M2U2LWRiNGFjODNlZDYzMC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOFQxMDA3MTBaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01ZWU5YzEyMzRkYWM5YTUzZTQ3NWZjMjFkYjllYzIzNTQzY2FkY2ZmNDg1ZTRiOTVjM2E4ZDNiMTc4MWE4ZjIxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9._CMS_h4Zd7GpLj-bN_zmAZs1scRVku9Cl_dUEXJ2tK8)
This never happens for single thread mode.
Although I am not sure the role of max_submit_count, this behavior is obviously wired and should be enhanced so that all the thread is created simultaneously.
Attached is the very easy sample workflow.
workflow.zip
✔️ Expected Behavior
Workflows should be successful even if input length is large.
❌ Actual Behavior
Input length to iteration node with parallel mode fails 100%.
The text was updated successfully, but these errors were encountered: