GRAPLE / GWS

Graple Web Service
3 stars 5 forks source link

EMS Error on Worker Fails #19

Open vahid-dan opened 5 years ago

vahid-dan commented 5 years ago

EMS service needs a restart after a fail in worker nodes:

Jun 26 17:45:43 graple-Submit python[252255]: Traceback (most recent call last):
Jun 26 17:45:43 graple-Submit python[252255]:   File "ems.py", line 169, in <module>
Jun 26 17:45:43 graple-Submit python[252255]:     process_once()
Jun 26 17:45:43 graple-Submit python[252255]:   File "ems.py", line 144, in process_once
Jun 26 17:45:43 graple-Submit python[252255]:     prog = round(float(cout.count('4'))/len(dbdoc['payload'])*100, 2)
Jun 26 17:45:43 graple-Submit python[252255]: ZeroDivisionError: float division by zero
Jun 26 17:45:43 graple-Submit systemd[1]: ems.service: Main process exited, code=exited, status=1/FAILURE
Jun 26 17:45:43 graple-Submit systemd[1]: ems.service: Unit entered failed state.
Jun 26 17:45:43 graple-Submit systemd[1]: ems.service: Failed with result 'exit-code'.