Download backend/store_locks.py from SolutionChallenge/solution_challenge_backend: direct link, hf CLI and curl.
- Browser
- Download file 365 Bytes
-
https://huggingface.co/spaces/SolutionChallenge/solution_challenge_backend/resolve/main/backend/store_locks.py
- Command line
-
hf download hf://spaces/SolutionChallenge/solution_challenge_backend/backend/store_locks.py
-
curl -L -o store_locks.py https://huggingface.co/spaces/SolutionChallenge/solution_challenge_backend/resolve/main/backend/store_locks.py
365 Bytes
| """Async locks for in-memory store read-modify-write sections.""" | |
| import asyncio | |
| issues_lock = asyncio.Lock() | |
| alerts_lock = asyncio.Lock() | |
| staff_requests_lock = asyncio.Lock() | |
| signage_lock = asyncio.Lock() | |
| agentic_plans_lock = asyncio.Lock() | |
| gossip_lock = asyncio.Lock() | |
| agent_steps_lock = asyncio.Lock() | |
| detections_lock = asyncio.Lock() | |
| sos_lock = asyncio.Lock() | |