execute the planner every minute

This commit is contained in:
Sven Czarnian committed 2021-09-02 21:01:00 +02:00
1 parent 744ad71b6c
commit aaa37a5f62
1 file changed
+8
+8
View File
@@ -1,6 +1,7 @@
#!/usr/bin/env python
import threading
import time
from aman.config.Airport import Airport
@@ -16,6 +17,13 @@ class Worker(threading.Thread):
self.stopThread = True
def run(self):
counter = 0
while None == self.stopThread:
time.sleep(1)
counter += 1
if 0 != (counter % 60):
continue
# TODO execute planning, etc.
continue