Closed cgillum closed 1 year ago
/cc @DeepanshuA
Related issue: WorkflowState
exposes a runtime_status
property, but it returns a WorkflowStatus
enum which isn't exported (it's not listed in __init__.py
) and therefore isn't directly usable. This also needs to be fixed.
/assign
Expected Behavior
WorkflowState
objects, which are returned from methods likewait_for_workflow_completion
, should be easy to inspect, whether using a debugger or via printing.Actual Behavior
It's really difficult to inspect the state of a workflow from the
WorkflowState
objects. For example, if I try to print an object usingprint(state)
, I get this:I also can't dump the object to JSON:
Even visualizing the object in the VS Code debugger is awkward because the useful properties are hidden behind a
_WorkflowState__obj
property.Steps to Reproduce the Problem
Use the
DaprWorkflowClient
to start and inspect a workflow, similar to the following:Release Note
RELEASE NOTE: FIX Improved usability of the
WorkflowState
class