Skip to content

Commit

Permalink
random changes
Browse files Browse the repository at this point in the history
Signed-off-by: Paige Rubendall <[email protected]>
  • Loading branch information
paigerube14 committed Jan 23, 2024
1 parent f862dbf commit 0168942
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions start_cerberus.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def main(cfg):
pool = multiprocessing.Pool(int(cores_usage_percentage * multiprocessing.cpu_count()), init_worker)
manager = multiprocessing.Manager()
pods_tracker = manager.dict()
logging.info("set up pool")

# Track time taken for different checks in each iteration
global time_tracker
time_tracker = {}
Expand Down Expand Up @@ -217,7 +217,6 @@ def main(cfg):
iteration_start_time = time.time()

iteration += 1
logging.info("starting iteration top")
# Read the config for info when slack integration is enabled
if slack_integration:
weekday = runcommand.invoke("date '+%A'")[:-1]
Expand Down Expand Up @@ -271,7 +270,6 @@ def main(cfg):
),
],
)
logging.info("done partial")
# Increment api_fail_count if api server url is not ok
if not server_status:
api_fail_count += 1
Expand All @@ -294,7 +292,6 @@ def main(cfg):
repeat(watch_namespaces_ignore_pattern),
),
)
logging.info("after partial 2")

watch_namespaces_status = False if failed_pods_components else True
iter_track_time["watch_namespaces"] = time.time() - watch_namespaces_start_time
Expand Down

0 comments on commit 0168942

Please sign in to comment.