Skip to content

Commit

Permalink
experiment with maximum thread count at 50
Browse files Browse the repository at this point in the history
will need to set this to a multiple of cpu core count?
Issue #330
  • Loading branch information
damies13 committed Jan 4, 2025
1 parent 06ef064 commit 2a8c56f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Tests/Regression/Manager/CommandLine_Common.robot
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Wait For Manager
[Arguments] ${timeout}=30min
${result}= Wait For Process ${process_manager} timeout=${timeout} on_timeout=terminate
# Should Be Equal As Integers ${result.rc} 0
Log to console ${result.rc}
Log to console Manager exited with: ${result.rc}

Check Agent Is Running
[Documentation] This keyword checks if the agent is running and returns true or false
Expand Down
5 changes: 5 additions & 0 deletions rfswarm_manager/rfswarm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1468,6 +1468,11 @@ def find_dependancies(self, hash):
t = threading.Thread(target=base.find_dependancies, args=(newhash, ))
t.start()

base.debugmsg(0, "threading active count:", threading.active_count())
while threading.active_count() > 50:
base.debugmsg(0, "threading active count:", threading.active_count())
time.sleep(0.1)

def is_resfile_prefix(self, prefixname):
base.debugmsg(5, "prefixname:", prefixname)
prefixs = {
Expand Down

0 comments on commit 2a8c56f

Please sign in to comment.