changed thread pool code again
This commit is contained in:
@@ -144,10 +144,8 @@ with ThreadPool(NUM_THREADS) as pool:
|
|||||||
except TimeoutError as e:
|
except TimeoutError as e:
|
||||||
logger.error("Timeout while getting capture agent state! {}".format(e))
|
logger.error("Timeout while getting capture agent state! {}".format(e))
|
||||||
|
|
||||||
pool.close()
|
logger.info("DONE checking capture agents / recorders!")
|
||||||
pool.join()
|
|
||||||
logged_events = rec_err_state_log_stream.getvalue()
|
logged_events = rec_err_state_log_stream.getvalue()
|
||||||
if len(logged_events) > 0:
|
if len(logged_events) > 0:
|
||||||
send_error_mail(logged_events, "Errors have been detected while checking recorder states!")
|
send_error_mail(logged_events, "Errors have been detected while checking recorder states!")
|
||||||
|
|
||||||
logger.info("DONE checking capture agents / recorders!")
|
|
||||||
|
|||||||
Reference in New Issue
Block a user