mahmood19227 1 anno fa
parent
commit
9f4b16fe97
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      simulatorManager.py

+ 2
- 1
simulatorManager.py Vedi File

@@ -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)


Caricamento…
Annulla
Salva