mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-02 00:32:09 +02:00
check for schema_update lock when poller-service runs
This commit is contained in:
+1
-1
@@ -242,7 +242,7 @@ while True:
|
|||||||
devices_scanned = 0
|
devices_scanned = 0
|
||||||
next_update = datetime.now() + timedelta(minutes=1)
|
next_update = datetime.now() + timedelta(minutes=1)
|
||||||
|
|
||||||
while threading.active_count() >= amount_of_workers:
|
while threading.active_count() >= amount_of_workers or not lockFree('schema_update'):
|
||||||
time.sleep(.5)
|
time.sleep(.5)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user