Skip to content

Commit

Permalink
fix: wait_function
Browse files Browse the repository at this point in the history
Signed-off-by: SdgJlbl <[email protected]>
  • Loading branch information
SdgJlbl committed Feb 19, 2024
1 parent 32e354c commit ce26250
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion substra/sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,11 @@ def wait_function(
asset_getter = self.get_function
status_canceled = models.FunctionStatus.canceled.value
status_failed = models.FunctionStatus.failed.value
statuses_stopped = (models.FunctionStatus.ready.value, models.FunctionStatus.canceled.value)
statuses_stopped = (
models.FunctionStatus.ready.value,
models.FunctionStatus.canceled.value,
models.FunctionStatus.failed.value,
)
return self._wait(
key=key,
asset_getter=asset_getter,
Expand Down

0 comments on commit ce26250

Please sign in to comment.