Skip to content

Conversation

@LucasZimm
Copy link
Collaborator

Simple thread function for run_parser

Closes #234

@LucasZimm LucasZimm self-assigned this Nov 25, 2025
@LucasZimm LucasZimm linked an issue Nov 25, 2025 that may be closed by this pull request
Copy link
Member

@JosePizarro3 JosePizarro3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left some comments

I still want to test out myself, so before merging let me go through it pls

timeout (int, optional): Time in seconds for the parser to complete before timing out. Defaults to 300.
max_workers (int, optional): Number of threads to use. Defaults to 1.
"""
with ThreadPoolExecutor(max_workers) as executor:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should probably add the initial checks that also happen in run_parser(), for consistency.

Alternatively, we could create a class RunParser() with an __init__ accepting the inputs, and two distinct functions: one for running the parser, and another for the threading

@coveralls
Copy link

coveralls commented Dec 5, 2025

Pull Request Test Coverage Report for Build 20276964836

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-57.9%) to 0.0%

Totals Coverage Status
Change from base Build 20276964929: -57.9%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Threading to run_parser Function

4 participants