Skip to content

Commit ade778a

Browse files
fixes: review feedback
1 parent bc92fe5 commit ade778a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

workflowai/core/client/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ async def run(
140140
res = None
141141
delay = retry_delay / 1000
142142
retry_count = 0
143-
while retry_count <= max_retry_count:
143+
while retry_count < max_retry_count:
144144
try:
145145
res = await self.api.post(route, request, returns=TaskRunResponse)
146146
return res.to_domain(task)
@@ -169,7 +169,7 @@ async def run(
169169
async def _stream():
170170
delay = retry_delay / 1000
171171
retry_count = 0
172-
while retry_count <= max_retry_count:
172+
while retry_count < max_retry_count:
173173
try:
174174
async for chunk in self.api.stream(
175175
method="POST", path=route, data=request, returns=RunTaskStreamChunk

0 commit comments

Comments
 (0)