Skip to content
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

How to trigger Queue Prompt from within a node? #5667

Closed
GraftingRayman opened this issue Nov 18, 2024 · 2 comments
Closed

How to trigger Queue Prompt from within a node? #5667

GraftingRayman opened this issue Nov 18, 2024 · 2 comments
Labels
User Support A user needs help with something, probably not a bug.

Comments

@GraftingRayman
Copy link

Your question

Is it possible to trigger the Queue prompt to run from within a node?

I have a script that parses a large file, when it encounters certain data, I need it to trigger the queue prompt, is this possible?

Logs

No response

Other

No response

@GraftingRayman GraftingRayman added the User Support A user needs help with something, probably not a bug. label Nov 18, 2024
@LukeG89
Copy link

LukeG89 commented Nov 18, 2024

I've never use it, but you could try Queue Trigger node from ComfyUI-Impact-Pack

image

@GraftingRayman
Copy link
Author

Thank you, looks like that would work

def doit(self, signal, mode):
if(mode):
PromptServer.instance.send_sync("impact-add-queue", {})

    return (signal,)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
User Support A user needs help with something, probably not a bug.
Projects
None yet
Development

No branches or pull requests

2 participants