let python calculate default threadpool workers based on cpu count
This commit is contained in:
parent
96942719f2
commit
3b47b9558a
|
@ -39,7 +39,7 @@ def check_in_task() -> None:
|
|||
agents: List[int] = [
|
||||
i.pk for i in q if pyver.parse(i.version) >= pyver.parse("1.1.12")
|
||||
]
|
||||
with ThreadPoolExecutor(max_workers=30) as executor:
|
||||
with ThreadPoolExecutor() as executor:
|
||||
executor.map(_check_in_full, agents)
|
||||
|
||||
|
||||
|
@ -47,7 +47,7 @@ def check_in_task() -> None:
|
|||
def monitor_agents_task() -> None:
|
||||
q = Agent.objects.all()
|
||||
agents: List[int] = [i.pk for i in q if i.has_nats and i.status != "online"]
|
||||
with ThreadPoolExecutor(max_workers=15) as executor:
|
||||
with ThreadPoolExecutor() as executor:
|
||||
executor.map(_check_agent_service, agents)
|
||||
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ EXE_DIR = os.path.join(BASE_DIR, "tacticalrmm/private/exe")
|
|||
AUTH_USER_MODEL = "accounts.User"
|
||||
|
||||
# latest release
|
||||
TRMM_VERSION = "0.2.19"
|
||||
TRMM_VERSION = "0.2.20"
|
||||
|
||||
# bump this version everytime vue code is changed
|
||||
# to alert user they need to manually refresh their browser
|
||||
|
|
Loading…
Reference in New Issue