fix: close workflow review gaps

This commit is contained in:
lda
2026-09-04 20:00:21 +07:00 Verified
parent 220df14314
commit 6b5c79ba21
15 changed files with 169 additions and 60 deletions
+1
View File
@@ -22,6 +22,7 @@
"Loads exact artifact version 3 and edits the seeded builder rather than rebuilding",
"Warns that step IDs and state paths must be inspected rather than guessed",
"Validates locally and remotely before saving version 4",
"Passes an explicit source binding through bindings=... when creating the deployment",
"Creates and validates a deployment before starting a durable run"
]
},
@@ -133,7 +133,7 @@ its real contract; do not assume those names exist.
## Deployment Diagnosis And Durable Runs
```python
from wf_client import DeploymentRequired, WorkflowClientError
from wf_client import DeploymentRequired, ProtocolError, WorkflowClientError
artifact = await app.workflow("invoice", version=2)
@@ -144,6 +144,12 @@ except DeploymentRequired as error:
print("unresolved", error.unresolved_logical_sources)
for diagnostic in error.diagnostics:
print(diagnostic.code, diagnostic.message)
except ProtocolError as error:
print("server error", error.code, error.message, error.data)
raise
except WorkflowClientError as error:
print(type(error).__name__, error)
raise
deployment = await artifact.deploy(
"invoice.production",