Add CI/CD workflow
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user