Add health reporting, container probe, and JNN channel support
Build and Publish TVJ EPG Image / build (push) Successful in 29s

This commit is contained in:
Lyncoln
2026-09-10 10:38:21 -04:00
parent 02a68f029a
commit 8529fca032
11 changed files with 349 additions and 13 deletions
+16
View File
@@ -0,0 +1,16 @@
"""Container probe: degraded service remains usable and passes the probe."""
import os
import sys
import urllib.request
def main():
try:
with urllib.request.urlopen(f'http://127.0.0.1:{os.environ.get("PORT", "1876")}/health', timeout=5) as response:
return 0 if response.status == 200 else 1
except Exception:
return 1
if __name__ == '__main__':
sys.exit(main())