Skip to content

Commit

Permalink
fix: convert environment variables to int (blib-la#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
2 people authored and Calvin-Huang committed Nov 26, 2024
1 parent 8e2c0e4 commit 0e53e29
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 @@ -15,9 +15,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 0e53e29

Please sign in to comment.