city96 / ComfyUI_NetDist

Run ComfyUI workflows on multiple local GPUs/networked machines.
Apache License 2.0
311 stars 30 forks source link

Not work By API request #19

Open perlinson opened 6 months ago

perlinson commented 6 months ago

hello, it's a nice project , it works well in the comfyui web ui, but when i export the workflow to api format ,then send request with the api json on 8188 ,it always invoke the 8188 workflow first , then invoke another one after the 8188 workflow completed , they are unable to run at the same time ,it's possiable to sovle this porblem?

city96 commented 6 months ago

You mean sending the API json to the same URL as the running instance? Don't think that'd be possible without some hacky workarounds. Comfy only runs a single workflow at a time. Even if I queue it as the first to run, it'll be blocked by the currently running one (which will never finish since it's waiting for the current one to finish).

You could try launch a second instance with --cpu on a different port and use that exclusively as a control instance I guess? Not sure what your usecase is.