26 lines
374 B
Python
26 lines
374 B
Python
from .ipc import IPCServer
|
|
from .scheduler import Scheduler
|
|
|
|
|
|
def main():
|
|
scheduler = Scheduler()
|
|
ipc = IPCServer()
|
|
|
|
scheduler.start()
|
|
ipc.start()
|
|
|
|
try:
|
|
while True:
|
|
ipc._stop_event.wait(3600)
|
|
|
|
except KeyboardInterrupt:
|
|
pass
|
|
|
|
finally:
|
|
ipc.stop()
|
|
scheduler.stop()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|