Skip to content

Not work By API request #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
perlinson opened this issue Mar 30, 2024 · 1 comment
Open

Not work By API request #19

perlinson opened this issue Mar 30, 2024 · 1 comment

Comments

@perlinson
Copy link

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
Copy link
Owner

city96 commented Apr 3, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants