Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /GRID-INTELLIGENCE_GRID /scripts /debug_pools.py
| #!/usr/bin/env python | |
| """ | |
| Check PostgreSQL, Redis, Databricks connection pools. Used by Debug: Connection Pool Status task. | |
| Usage: | |
| uv run python scripts/debug_pools.py | |
| """ | |
| from __future__ import annotations | |
| import subprocess | |
| import sys | |
| from pathlib import Path | |
| # Ensure workspace root first (local safety/), then work/GRID/src (grid) | |
| _root = Path(__file__).resolve().parent.parent | |
| _src = _root / "work" / "GRID" / "src" | |
| for p in (_root, _src): | |
| if p.exists(): | |
| s = str(p) | |
| if s in sys.path: | |
| sys.path.remove(s) | |
| sys.path.insert(0, s) | |
| def main() -> int: | |
| """Show connection pool status via debug_cli.""" | |
| script_dir = Path(__file__).resolve().parent | |
| cli = script_dir / "debug_cli.py" | |
| return subprocess.call([sys.executable, str(cli), "pools"], cwd=script_dir.parent) | |
| if __name__ == "__main__": | |
| sys.exit(main()) | |
Xet Storage Details
- Size:
- 873 Bytes
- Xet hash:
- fb9e56887377fa1afc1b018b18a43cf3fd9b9f19ab2d325d1a102d537cb6e25d
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.