Skip to content

Commit c5e1dbd

Browse files
committed
fix: output action properties at completion of command runner
1 parent 8cde3ab commit c5e1dbd

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/binarylane/console/runners/action.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,15 @@ def response(self, status_code: int, received: Any) -> None:
7272
status = f"{received.action.type}: {step} ({received.action.progress.percent_complete}%) ... "
7373
self._progress(status)
7474

75-
# If action has completed, provide final status and return to caller
75+
# Check if action has completed
7676
if received.action.completed_at:
7777
self._progress(f"{received.action.status}.\n")
78-
return
78+
break
7979

80+
# Wait and then refresh action response
8081
time.sleep(5)
8182
response = sync_detailed(received.action.id, client=self._client)
8283
status_code, received = response.status_code, response.parsed
8384

84-
# Action did not complete so something went wrong - use standard error handling routine:
85+
# Action has now completed (or errored), process final response
8586
super().response(status_code, received)

0 commit comments

Comments
 (0)