Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /ram07eng_airflow-watcher /demo /wait_ready.py
| #!/usr/bin/env python3 | |
| """Wait for Airflow webservers to be ready.""" | |
| import urllib.request | |
| import time | |
| ports = [8080, 8081, 8082] | |
| for port in ports: | |
| for attempt in range(60): | |
| try: | |
| urllib.request.urlopen(f"http://localhost:{port}/health", timeout=3) | |
| print(f" :{port} ready") | |
| break | |
| except Exception: | |
| if attempt % 5 == 0: | |
| print(f" :{port} not ready (attempt {attempt+1})...") | |
| time.sleep(3) | |
| else: | |
| print(f" :{port} TIMEOUT after 60 attempts") | |
| print("Done waiting.") | |
Xet Storage Details
- Size:
- 575 Bytes
- Xet hash:
- aab20541ada0dbdf3704287511e06ea9db3899ad2e0e5ebaf60adfdc170958dc
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.