Skip to content

Commit 6eea849

Browse files
author
Alan Christie
committed
fix: RunningWorkflowStep response now expected to have a name (not a step)
1 parent 6eaaf61 commit 6eea849

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/test_test_api_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def test_get_running_workflow_step():
238238
response, _ = utaa.get_running_workflow_step(running_workflow_step_id=rwfsid)
239239

240240
# Assert
241-
assert response["step"] == "step-1"
241+
assert response["name"] == "step-1"
242242
assert not response["done"]
243243
assert response["running_workflow"] == rwfid
244244

tests/wapi_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def create_running_workflow_step(
134134
id=next_id
135135
)
136136
record = {
137-
"step": step,
137+
"name": step,
138138
"done": False,
139139
"success": False,
140140
"running_workflow": running_workflow_id,

workflow/workflow_engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def _handle_pod_message(self, msg: PodMessage) -> None:
214214
r_wfsid,
215215
str(rwfs_response),
216216
)
217-
step_name: str = rwfs_response["step"]
217+
step_name: str = rwfs_response["name"]
218218

219219
# Get the step's running workflow record.
220220
r_wfid = rwfs_response["running_workflow"]

0 commit comments

Comments
 (0)