Skip to content

Commit

Permalink
Merge pull request #19 from gisce/get-max-prox-from-loadavg
Browse files Browse the repository at this point in the history
Get MAX_PROCS from cpus and system load average
  • Loading branch information
tinogis authored Aug 3, 2023
2 parents c9793ff + 0a9c33a commit 1d5889e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoworker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from osconf import config_from_environment


MAX_PROCS = mp.cpu_count() + 1
MAX_PROCS = max(mp.cpu_count() - os.getloadavg()[0], 0) + 1
"""Number of maximum procs we can run
"""

Expand Down

0 comments on commit 1d5889e

Please sign in to comment.