Skip to content

Commit

Permalink
Adjust return flag from function
Browse files Browse the repository at this point in the history
  • Loading branch information
raunakab committed Jan 11, 2025
1 parent ef4f2ae commit cdb9313
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/ci-scripts/job_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ async def print_logs(logs):
async def wait_on_job(logs, timeout_s) -> bool:
try:
await asyncio.wait_for(print_logs(logs), timeout=timeout_s)
return True
except asyncio.exceptions.TimeoutError:
return False
except TimeoutError:
return False
except asyncio.exceptions.TimeoutError:
return True


@dataclass
Expand Down

0 comments on commit cdb9313

Please sign in to comment.