From 444c2cb7ddb9c2ec1fd86689567a7f68e1140516 Mon Sep 17 00:00:00 2001 From: Shreya Date: Mon, 10 Aug 2020 11:29:37 +0530 Subject: [PATCH] Change max threads from 4 to 5 & modify log message --- monkey/infection_monkey/monkey.py | 2 +- monkey/infection_monkey/post_breach/post_breach_handler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/monkey/infection_monkey/monkey.py b/monkey/infection_monkey/monkey.py index be97332a4..02463e988 100644 --- a/monkey/infection_monkey/monkey.py +++ b/monkey/infection_monkey/monkey.py @@ -139,7 +139,7 @@ class InfectionMonkey(object): StateTelem(is_done=False, version=get_version()).send() TunnelTelem().send() - LOG.debug("Starting the post-breach phase.") + LOG.debug("Starting the post-breach phase asynchronously.") post_breach_phase = Thread(target=self.start_post_breach_phase) post_breach_phase.start() diff --git a/monkey/infection_monkey/post_breach/post_breach_handler.py b/monkey/infection_monkey/post_breach/post_breach_handler.py index 86f519c9e..e20727ccf 100644 --- a/monkey/infection_monkey/post_breach/post_breach_handler.py +++ b/monkey/infection_monkey/post_breach/post_breach_handler.py @@ -25,7 +25,7 @@ class PostBreach(object): """ Executes all post breach actions. """ - pool = Pool(4) + pool = Pool(5) pool.map(self.run_pba, self.pba_list) LOG.info("All PBAs executed. Total {} executed.".format(len(self.pba_list)))