Skip to content

Commit

Permalink
* Minor fix on parallelism (firebase succeed)
Browse files Browse the repository at this point in the history
  • Loading branch information
JiseungHong committed Dec 10, 2024
1 parent bf1de03 commit b904862
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions openhands_resolver/resolve_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,9 @@ async def process_issue(
return output

# This function tracks the progress AND write the output to a JSONL file
async def update_progress(output: Awaitable[ResolverOutput], output_fp: TextIO, pbar: tqdm) -> None:
resolved_output = await output
async def update_progress(output: ResolverOutput, output_fp: TextIO, pbar: tqdm) -> None:
# output is now ResolverOutput, not Awaitable[ResolverOutput]
resolved_output = output
pbar.update(1)
pbar.set_description(f'issue {resolved_output.issue.number}')
pbar.set_postfix_str(
Expand Down Expand Up @@ -725,8 +726,8 @@ def main():
parser.add_argument(
"--max-iterations",
type=int,
# default=50,
default=1,
default=50,
# default=1,
help="Maximum number of iterations to run.",
)
parser.add_argument(
Expand Down

0 comments on commit b904862

Please sign in to comment.