v0.2.2: BUILD_FAILED pull failure aborts redeploy with clear message
Remove contextlib.suppress from the image pull step in the BUILD_FAILED redeploy path. A failed pull (e.g. non-existent tag) now immediately returns an actionable error pointing to update_image_tag instead of silently continuing and starting the project with stale/missing image. Also bumps version 0.2.1 → 0.2.2 and adds CHANGELOG entry. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -167,8 +167,15 @@ def register_projects(mcp: FastMCP, config: AppConfig, client: DsmClient) -> Non
|
||||
await client.request("SYNO.Docker.Project", "stop", params={"id": project_id})
|
||||
results.append(" Build stopped.")
|
||||
results.append("Step 2/4: Pulling updated images...")
|
||||
with contextlib.suppress(Exception):
|
||||
try:
|
||||
await client.request("SYNO.Docker.Image", "pull", params={"id": project_id})
|
||||
except Exception as pull_err:
|
||||
results.append(f" Pull failed: {pull_err}")
|
||||
results.append(
|
||||
"Aborted: image pull failed — the image tag in compose.yaml may not exist. "
|
||||
"Fix the tag with update_image_tag, then retry redeploy_project."
|
||||
)
|
||||
return "\n".join(results)
|
||||
results.append(" Images pulled.")
|
||||
results.append("Step 3/4: Starting project...")
|
||||
await client.request("SYNO.Docker.Project", "start", params={"id": project_id})
|
||||
|
||||
Reference in New Issue
Block a user