Nourepide / ComfyUI-Allor

ComfyUI plugin for image processing and work with alpha chanel.
MIT License
186 stars 22 forks source link

Long node import time #26

Open ckao10301 opened 5 months ago

ckao10301 commented 5 months ago

Hi,

I'm running a docker image on a comfyui serverless worker with Allor installed. I've set update_frequency=never in config.json. The problem is, during at runtime this node takes too long to import (>30s), which causes the server to timeout. The problem only occurs during cold starts of the worker.

I don't have this issue on my local comfyui portable installation (import time=2.5s).

Do you have any clues on what Allor is trying to do at startup that might take so much time? @Nourepide

image image

Nourepide commented 4 months ago

Hi, sorry for the long answer, I had some problems.

As I think the fact is that caching occurs at the first launch and it actually goes somewhere in the region of 30 seconds. Caching happens only once, but as I understand it, the docker container recreates the environment every time, which leads to this result.

ckao10301 commented 4 months ago

Hmm, what types of files is it caching? I'm wondering if I can preinstall or handle those files differently to avoid this issue on startup.