-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathapp.py
More file actions
33 lines (27 loc) · 770 Bytes
/
app.py
File metadata and controls
33 lines (27 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python
# -*- encoding: utf-8 -*-
'''
@File : app.py
@Time : 2023/10/25
@Author : Jacob Roy
@Version : 1.0
@Contact : lejacobroy@gmail.com
@Desc :
'''
from multiprocessing import Process
from runWebServer import webServer
from runSchedule import mainSchedule
def main():
print("Starting tidalrr app", flush=True)
processes = []
process1 = Process(target=webServer, args=(False,))
process2 = Process(target=mainSchedule)
#process2 = Process(target=mainScansSchedule)
#process3 = Process(target=mainDownloadsSchedule)
processes.extend([process1, process2])
for process in processes:
process.start()
for process in processes:
process.join()
if __name__ == '__main__':
main()