ComfyUI-Allor icon indicating copy to clipboard operation
ComfyUI-Allor copied to clipboard

Long node import time

Open ckao10301 opened this issue 1 year ago • 2 comments

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

ckao10301 avatar Feb 21 '24 08:02 ckao10301

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.

Nourepide avatar Mar 16 '24 01:03 Nourepide

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.

ckao10301 avatar Mar 16 '24 01:03 ckao10301