File size: 343 Bytes
d6dec4f
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
def runtime_risks():
    risks = [
        "Python threads cannot be force-killed safely",
        "yt-dlp may block despite socket_timeout",
        "HF Spaces may restart and kill background tasks"
    ]
    with open("artifacts/environment_risks.md", "w") as f:
        f.write("\n".join(f"- {r}" for r in risks))
    return risks