mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-01 00:24:21 +02:00
bad index
This commit is contained in:
+3
-1
@@ -246,13 +246,15 @@ while True:
|
|||||||
# add queue lock, so we lock the next device against any other pollers
|
# add queue lock, so we lock the next device against any other pollers
|
||||||
# if this fails, the device is locked by another poller already
|
# if this fails, the device is locked by another poller already
|
||||||
if not getLock('queued.{}'.format(device_id)):
|
if not getLock('queued.{}'.format(device_id)):
|
||||||
|
time.sleep(.5)
|
||||||
continue
|
continue
|
||||||
if not lockFree('polling.{}'.format(device_id)):
|
if not lockFree('polling.{}'.format(device_id)):
|
||||||
releaseLock('queued.{}'.format(device_id))
|
releaseLock('queued.{}'.format(device_id))
|
||||||
|
time.sleep(.5)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if next_poll and next_poll > datetime.now():
|
if next_poll and next_poll > datetime.now():
|
||||||
log.debug('DEBUG: Sleeping until {0} before polling {2}'.format(next_poll, device_id))
|
log.debug('DEBUG: Sleeping until {0} before polling {1}'.format(next_poll, device_id))
|
||||||
sleep_until(next_poll)
|
sleep_until(next_poll)
|
||||||
|
|
||||||
action = 'poll'
|
action = 'poll'
|
||||||
|
|||||||
Reference in New Issue
Block a user