Skip to content

Commit 8a7d999

Browse files
authored
Update is_done condition to include new status (#576)
1 parent 8fb5171 commit 8a7d999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lean/components/cloud/cloud_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def run_optimization(self,
139139
try:
140140
return self._task_manager.poll(
141141
make_request=lambda: self._api_client.optimizations.get(created_optimization.optimizationId),
142-
is_done=lambda data: data.status != "active" and data.status != "running",
142+
is_done=lambda data: data.status != "active" and data.status != "running" and data.status != "new",
143143
get_progress=lambda data: data.get_progress()
144144
)
145145
except KeyboardInterrupt as e:

0 commit comments

Comments
 (0)