Add current step that is in progress (#35272)
This commit is contained in:
1 parent
56beec1ce9
commit
1c5b4dbd97
3 files changed
+20
-3
No files matched your search
@@ -94,7 +94,12 @@ class FlowManager(abc.ABC):
|
||||
def async_progress(self) -> List[Dict]:
|
||||
"""Return the flows in progress."""
|
||||
return [
|
||||
{"flow_id": flow.flow_id, "handler": flow.handler, "context": flow.context}
|
||||
{
|
||||
"flow_id": flow.flow_id,
|
||||
"handler": flow.handler,
|
||||
"context": flow.context,
|
||||
"step_id": flow.cur_step["step_id"],
|
||||
}
|
||||
for flow in self._progress.values()
|
||||
if flow.cur_step is not None
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user