Add optional webhook after job finished
Add optional webhook after job finished, allow to send prompt_id with api request
api params to send:
{
"prompt": "json - comfyui workflow exported as api format",
"prompt_id": "uuidv4", # optional - you can use it to reference your db record for job - webhook will contain this uuid
"webhook_url": "url to send results from comfyui after job is complete",
}
Comfyui will rspond to webhook url with params:
{
"prompt_id": "uuidv4 you provided during job creation (or autogenerated in comfyui during job creation)",
"execution_time": 32.7151094869987, # (in seconds)
"status": "success/error",
"result": {"outputs": {}} # same format as in history endpoint
}
A very anticipated feature. Is there any plan to merge this feature?
A very anticipated feature. Is there any plan to merge this feature?
I stopped waiting and I created custom node to take input and POST it to url you choose - I can share it if you want.
sure, please share it with me. If we have a web hook, we don't have to poll the task status.
@pawelkania @springjk I'm interested as well. Would you be so kind to maybe post a link in this thread? 🙏
@springjk @jlison I added this node into https://github.com/2frames/ComfyUI-AQnodes repository - just clone newest version and use AQ_SendImageToAPI node
@2frames thank you so much for sharing 🙏🍻