Spaces:
Running
Running
Commit History
-
fix(ingest): hard deadlines on network calls, stack dumps, ingest timeout
siddhm11 +1: Claude Opus 5.5A real daily-refresh ingest hung for 20 minutes at 0% CPU: the main thread was blocked in an SSL read (_buffered_readline -> SSLSocket.read -> poll) while arXiv answered fresh requests in 0.2 s. Socket timeouts bound each read, not the request, so a trickling server or a call made without a timeout can block forever, and the run would have sat until the Actions job timeout. - net_deadline.deadline(): SIGALRM wall-clock limit around every network call in the ingest (arXiv pages, Turso, Qdrant, Zilliz). Blocked syscalls are interrupted and the existing retry/failure paths take over. Tested against a local server that accepts and never answers: interrupted in under 5 s where the 100 s socket timeout would have waited. - faulthandler dumps every thread's stack every INGEST_STACK_DUMP_S (600 s) while the ingest runs, so a future stall names its line in the log. - daily_refresh: --ingest-timeout-min (60) fails the run with the captured output, stacks included, instead of hanging…e1e1d27