added ed webhook to it

This commit is contained in:
rainyy21
2026-11-11 09:50:38 -05:00
parent 27e1c0047f
commit 218d1a1366
4 changed files with 51 additions and 10 deletions
+8 -7
View File
@@ -181,13 +181,14 @@ def process_requests(state: dict) -> None:
# if repo["paused"]:
# continue
#
# c) so the website reacts fast: wait in short steps and wake up early
# when a request file shows up. Replace the end-of-round wait with:
# c) so the website and webhooks react fast: wait_for_next_round() already
# wakes up early via has_requests(), but only for the CLI's REQUEST_DIR.
# Make it look at the website's folder too:
#
# deadline = time.monotonic() + max(0, CHECK_INTERVAL - elapsed)
# while not STOP.is_set() and time.monotonic() < deadline:
# if any(REQUESTS_DIR.glob("*.json")):
# break
# STOP.wait(2)
# def has_requests() -> bool:
# return any(d.is_dir() and any(d.glob("*.json"))
# for d in (REQUEST_DIR, REQUESTS_DIR))
#
# Only do this together with (a): if nothing deletes the files in
# REQUESTS_DIR, the watcher would wake up every second forever.
# (a full round then runs: requests first, then the normal checks)