Comfy-Org / Comfy-Org/ComfyUI

High CPU usage caused by JSON encoding in API queue

Open
#8,326 3 comments 0 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 10h
Merged PRs (30d)
153

Description

### Expected Behavior

API request return in short or Does not blocking the main ComfyUI execution.

### Actual Behavior

submit a big workflow with batch size 1500 will cause the API queue take 30% CPU time of whole process

### Steps to Reproduce

1, a big workflow
2, submit 1500 task to comfyui

### Debug Logs

```powershell
there is no log
```

### Other

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.