Skip to content

Commit

Permalink
fix: convert environment variables to int (#70)
Browse files Browse the repository at this point in the history
* convert environment variables to int

COMFY_POLLING_INTERVAL_MS and COMFY_POLLING_MAX_RETRIES should be integers.

* chore: remove unnecessary comment

---------

Co-authored-by: NERDDISCO <492378+TimPietrusky@users.noreply.github.com>
  • Loading branch information
Pseudotools and TimPietrusky authored Nov 10, 2024
1 parent caf8478 commit 7ab3d2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rp_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
# Maximum number of API check attempts
COMFY_API_AVAILABLE_MAX_RETRIES = 500
# Time to wait between poll attempts in milliseconds
COMFY_POLLING_INTERVAL_MS = os.environ.get("COMFY_POLLING_INTERVAL_MS", 250)
COMFY_POLLING_INTERVAL_MS = int(os.environ.get("COMFY_POLLING_INTERVAL_MS", 250))
# Maximum number of poll attempts
COMFY_POLLING_MAX_RETRIES = os.environ.get("COMFY_POLLING_MAX_RETRIES", 500)
COMFY_POLLING_MAX_RETRIES = int(os.environ.get("COMFY_POLLING_MAX_RETRIES", 500))
# Host where ComfyUI is running
COMFY_HOST = "127.0.0.1:8188"
# Enforce a clean state after each job is done
Expand Down

0 comments on commit 7ab3d2a

Please sign in to comment.