Add CI/CD workflow
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 1m2s
GPU Worker CI/CD / test (push) Failing after 1m4s
GPU Worker CI/CD / deploy (push) Has been skipped

This commit is contained in:
giles
2026-02-06 10:44:13 +00:00
parent 7411aa74c4
commit 48018d09b7
11 changed files with 934 additions and 20 deletions

View File

@@ -150,6 +150,7 @@ class RunService:
"inputs": self._ensure_inputs_list(cached.get("inputs")),
"output_cid": output_cid,
"ipfs_cid": cached.get("ipfs_cid"),
"ipfs_playlist_cid": cached.get("ipfs_playlist_cid") or (pending.get("ipfs_playlist_cid") if pending else None),
"provenance_cid": cached.get("provenance_cid"),
"plan_cid": cached.get("plan_cid"),
"actor_id": cached.get("actor_id"),
@@ -174,6 +175,7 @@ class RunService:
status_map = {
"pending": "pending",
"started": "running",
"rendering": "running", # Custom status from streaming task
"success": "completed",
"failure": "failed",
"retry": "running",
@@ -192,6 +194,14 @@ class RunService:
"created_at": pending.get("created_at"),
"error": pending.get("error"),
"recipe_sexp": pending.get("dag_json"), # Recipe content for streaming runs
# Checkpoint fields for resumable renders
"checkpoint_frame": pending.get("checkpoint_frame"),
"checkpoint_t": pending.get("checkpoint_t"),
"total_frames": pending.get("total_frames"),
"resumable": pending.get("resumable", True),
# IPFS streaming info
"ipfs_playlist_cid": pending.get("ipfs_playlist_cid"),
"quality_playlists": pending.get("quality_playlists"),
}
# If task completed, get result
@@ -227,6 +237,14 @@ class RunService:
"created_at": pending.get("created_at"),
"error": pending.get("error"),
"recipe_sexp": pending.get("dag_json"), # Recipe content for streaming runs
# Checkpoint fields for resumable renders
"checkpoint_frame": pending.get("checkpoint_frame"),
"checkpoint_t": pending.get("checkpoint_t"),
"total_frames": pending.get("total_frames"),
"resumable": pending.get("resumable", True),
# IPFS streaming info
"ipfs_playlist_cid": pending.get("ipfs_playlist_cid"),
"quality_playlists": pending.get("quality_playlists"),
}
# Fallback: Check Redis for backwards compatibility
@@ -272,6 +290,7 @@ class RunService:
status_map = {
"pending": "pending",
"started": "running",
"rendering": "running", # Custom status from streaming task
"success": "completed",
"failure": "failed",
"retry": "running",