Skip to content

Commit

Permalink
ENH: Log max threads used by Child.ask_multiple
Browse files Browse the repository at this point in the history
skipci
  • Loading branch information
cortadocodes committed Jul 10, 2024
1 parent 1e1ddb3 commit 791dc5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion octue/resources/child.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def ask_multiple(
answers = {}
n_questions = len(questions)
max_workers = max_workers or min(32, (os.cpu_count() or 1) + 4, n_questions)
logger.info("Asking %d questions.", n_questions)
logger.info("Asking %d questions with maximum %d threads.", n_questions, max_workers)

with concurrent.futures.ThreadPoolExecutor(max_workers=max_workers) as executor:
future_to_question_index_mapping = {}
Expand Down

0 comments on commit 791dc5e

Please sign in to comment.