blib-la/runpod-worker-comfy

Type Error When ENV vars are set via Runpod Template

Opened this issue · 1 comments

time.sleep(COMFY_POLLING_INTERVAL_MS / 1000)

When defining a template on Runpod, there is an option to manually set environment variables. These variables seem to be interpolated as strings at run-time. That causes this division statement to fail as it can't divide a string.

Apologies for not PR'ing the fix for here and other places, but I've got a fork and then a subtree from that and I don't have my tooling setup well yet.

I've just faced the same issue, when setting COMFY_POLLING_MAX_RETRIES

try:
while retries < COMFY_POLLING_MAX_RETRIES:
history = get_history(prompt_id)

Error waiting for image generation: '<' not supported between instances of 'int' and 'str'