Comfy-Org / Comfy-Org/ComfyUI

Free resources after idle

Open
#1,676 2 comments 9 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 10h
Merged PRs (30d)
153

Description

Have a long running instance of ComfyUI running on a server, and I'm noticing it will hold onto memory/VRAM forever based on the last graph run. Would it be possible to implement a simple idle timeout that unloads things after no graph has been run in maybe 30 minutes?

Currently we're just watching the logs, waiting for them to stop logging anything for a duration, then restarting the container to free things.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.