From 9f4b16fe975d8c61becd7f1c80e54e3c6f6bf259 Mon Sep 17 00:00:00 2001 From: mahmood19227 Date: Sun, 20 Aug 2023 10:02:20 +0330 Subject: [PATCH] First Demo --- simulatorManager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/simulatorManager.py b/simulatorManager.py index 9b7895b..5e374fa 100644 --- a/simulatorManager.py +++ b/simulatorManager.py @@ -34,7 +34,8 @@ if __name__=='__main__': if proc.info['name'] == process_name and len(proc.info['cmdline']) > 1 and proc.info['cmdline'][1] == simulation_id: process_exists = True break - if not process_exists: + if not simulation_id in runnings: #process_exists: + runnings.append(simulation_id) command = ['./SimulationCore2', redis_address,str(redis_port),redis_password,simulation_id,str(log_level),str(stepTime)] print(command) subprocess.Popen(command, cwd=work_dir)