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

Need some hook callbacks in server.py #3429

Closed
liusida opened this issue May 8, 2024 · 1 comment
Closed

Need some hook callbacks in server.py #3429

liusida opened this issue May 8, 2024 · 1 comment

Comments

@liusida
Copy link

liusida commented May 8, 2024

Since #3297 doesn't have the potential to be merged, I'll close it again.

And, @comfyanonymous , can you simply add an empty callback function after ws connection is closed and after sending a sync to the client:

self.sockets.pop(sid, None)

and
self.send_sync("status", { "status": self.get_queue_info() })

so that I can write a custom node to override this callback function and do some clean up?

Or any other suggestion to save resource when multiple instances of ComfyUI are running concurrently?

@pixelass
Copy link
Contributor

pixelass commented May 9, 2024

Please see this comment: #3192 (comment)

Memory can be freed by adding a simple web extension. Available via our comfyUI extensions: https://github.com/blib-la/blibla-comfyui-extensions?tab=readme-ov-file#unload-models

❤️

@liusida liusida closed this as completed May 22, 2024
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