check for schema_update lock when poller-service runs

This commit is contained in:
Clint Armstrong
2015-07-22 07:39:37 -04:00
parent 9039dbb425
commit a47ae33cfd

View File

@@ -242,7 +242,7 @@ while True:
devices_scanned = 0
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)
try: