Skip to content

Commit

Permalink
wait for long tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
SmartManoj committed Aug 18, 2024
1 parent 7ce9a65 commit c498085
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion opendevin/runtime/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ def _execute_bash(
logger.debug('End of file')
break
elif index == 2:
if output == last_output:
last_line = output.splitlines()[-1]
if output == last_output and not re.search(
r'Installing|Building|Downloading', last_line
):
timeout_counter += 1
if timeout_counter > timeout:
logger.debug('Timeout reached.')
Expand Down

0 comments on commit c498085

Please sign in to comment.