Add continuous model discovery and queued submission

This commit is contained in:
Codex
2026-08-19 12:36:14 +08:00
parent 71ea49b4c9
commit 990be72c54
4 changed files with 170 additions and 6 deletions

View File

@@ -11,6 +11,7 @@ import modelhub_pipeline_resumable as pipeline
HOST = "0.0.0.0"
VERSION = "1.1.0"
PORT = int(os.getenv("PORT", "8080"))
RUN_INTERVAL_SECONDS = int(os.getenv("PIPELINE_RUN_INTERVAL_SECONDS", "3600"))
RETRY_INTERVAL_SECONDS = int(os.getenv("PIPELINE_RETRY_INTERVAL_SECONDS", "60"))
@@ -67,6 +68,7 @@ class Handler(BaseHTTPRequestHandler):
200,
{
"name": "new-pipeline",
"version": VERSION,
"status": "running",
"strategy_id": STRATEGY_ID,
"pipeline_status": state["pipeline_status"],