mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-03 07:46:18 +00:00
Update dashboard.py
This commit is contained in:
@@ -1184,6 +1184,7 @@ def index():
|
|||||||
def peerInformationBackgroundThread():
|
def peerInformationBackgroundThread():
|
||||||
global WireguardConfigurations
|
global WireguardConfigurations
|
||||||
print(f"[WGDashboard] Background Thread #1 Started", flush=True)
|
print(f"[WGDashboard] Background Thread #1 Started", flush=True)
|
||||||
|
print(f"[WGDashboard] Background Thread #1 PID:" + str(threading.get_native_id()), flush=True)
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
while True:
|
while True:
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
@@ -1202,6 +1203,7 @@ def peerInformationBackgroundThread():
|
|||||||
def peerJobScheduleBackgroundThread():
|
def peerJobScheduleBackgroundThread():
|
||||||
with app.app_context():
|
with app.app_context():
|
||||||
print(f"[WGDashboard] Background Thread #2 Started", flush=True)
|
print(f"[WGDashboard] Background Thread #2 Started", flush=True)
|
||||||
|
print(f"[WGDashboard] Background Thread #2 PID:" + str(threading.get_native_id()), flush=True)
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
while True:
|
while True:
|
||||||
AllPeerJobs.runJob()
|
AllPeerJobs.runJob()
|
||||||
|
Reference in New Issue
Block a user