Two changes to debug the fallback-to-LXC issue: 1. Added debug logging on switch failure: prints the profile name, sidecar response status, and error message. Also calls circuit_record_failure() so subsequent requests don't wait the full 120-second timeout before falling back. 2. Fixed scoping bug: sidecar_status was only defined inside the else branch of the circuit breaker check. Initialized to None at function scope alongside target_url and error to prevent NameError when circuit is open. |
||
|---|---|---|
| .hermes/plans | ||
| deploy | ||
| docs | ||
| scripts | ||
| sidecar | ||
| tests | ||
| .env | ||
| .gitignore | ||
| CONTEXT.md | ||
| docker-compose.yml | ||
| Dockerfile | ||
| main.py | ||
| pytest.ini | ||
| requirements.txt | ||