|
@@ -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: |
|
|
if proc.info['name'] == process_name and len(proc.info['cmdline']) > 1 and proc.info['cmdline'][1] == simulation_id: |
|
|
process_exists = True |
|
|
process_exists = True |
|
|
break |
|
|
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)] |
|
|
command = ['./SimulationCore2', redis_address,str(redis_port),redis_password,simulation_id,str(log_level),str(stepTime)] |
|
|
print(command) |
|
|
print(command) |
|
|
subprocess.Popen(command, cwd=work_dir) |
|
|
subprocess.Popen(command, cwd=work_dir) |
|
|