dev0524 commited on
Commit
48eb0c0
·
verified ·
1 Parent(s): ea50d09

scorevision: push artifact

Browse files
Files changed (1) hide show
  1. warmup_daemon.py +7 -4
warmup_daemon.py CHANGED
@@ -20,11 +20,14 @@ import time
20
  import urllib.request
21
  import json
22
 
23
- SLUG = os.getenv("SV_CHUTE_SLUG", "aiyoshida-turbovision-dev0524-slug")
24
  WINDOW_BLOCKS = int(os.getenv("SV_WINDOW_BLOCKS", "300"))
25
- LEAD_SECONDS = int(os.getenv("SV_LEAD_SECONDS", "420")) # start warming T-7min
26
- TRAIL_SECONDS = int(os.getenv("SV_TRAIL_SECONDS", "300")) # keep warm to T+5min
27
- PING_EVERY_S = int(os.getenv("SV_PING_EVERY_S", "40"))
 
 
 
28
  BLOCK_TIME_S = float(os.getenv("SV_BLOCK_TIME_S", "12.3"))
29
  API_KEY = os.environ["CHUTES_API_KEY"]
30
 
 
20
  import urllib.request
21
  import json
22
 
23
+ SLUG = os.getenv("SV_CHUTE_SLUG", "aiyoshida-turbovision-dev0524-shrimp")
24
  WINDOW_BLOCKS = int(os.getenv("SV_WINDOW_BLOCKS", "300"))
25
+ # Measured cold-start delay across 16 real windows: min 179s, median 221s, max 508s.
26
+ # 420s lead missed the tail (one window came up at 506-508s, after the challenge
27
+ # block had already fired). Lead now covers the observed max with real margin.
28
+ LEAD_SECONDS = int(os.getenv("SV_LEAD_SECONDS", "720")) # start warming T-12min
29
+ TRAIL_SECONDS = int(os.getenv("SV_TRAIL_SECONDS", "360")) # keep warm to T+6min
30
+ PING_EVERY_S = int(os.getenv("SV_PING_EVERY_S", "30"))
31
  BLOCK_TIME_S = float(os.getenv("SV_BLOCK_TIME_S", "12.3"))
32
  API_KEY = os.environ["CHUTES_API_KEY"]
33