Test shutdown.
This commit is contained in:
parent
df602ceb38
commit
c99d73dbc1
@ -383,14 +383,15 @@ def thermostat_loop():
|
|||||||
time.sleep(load_shedder_interval)
|
time.sleep(load_shedder_interval)
|
||||||
logging.info("====== Ended successfully ======")
|
logging.info("====== Ended successfully ======")
|
||||||
|
|
||||||
#if __name__ == '__main__':
|
|
||||||
xprint('toto1')
|
xprint('toto1')
|
||||||
t1 = Thread(target=thermostat_loop)
|
t1 = Thread(target=thermostat_loop)
|
||||||
#t1.daemon = True
|
|
||||||
t1.start()
|
t1.start()
|
||||||
xprint('toto2')
|
xprint('toto2')
|
||||||
gunicorn_app = app
|
gunicorn_app = app
|
||||||
xprint('toto3')
|
xprint('toto3')
|
||||||
#t1.join()
|
while True:
|
||||||
#exit(0)
|
if stop.is_set():
|
||||||
# app.run(host='0.0.0.0', port=3002)
|
dbconn.close()
|
||||||
|
break
|
||||||
|
time.sleep(0.5)
|
||||||
|
exit(0)
|
||||||
|
Loading…
Reference in New Issue
Block a user