mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
bad index
This commit is contained in:
@@ -246,13 +246,15 @@ while True:
|
||||
# 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 not getLock('queued.{}'.format(device_id)):
|
||||
time.sleep(.5)
|
||||
continue
|
||||
if not lockFree('polling.{}'.format(device_id)):
|
||||
releaseLock('queued.{}'.format(device_id))
|
||||
time.sleep(.5)
|
||||
continue
|
||||
|
||||
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)
|
||||
|
||||
action = 'poll'
|
||||
|
||||
Reference in New Issue
Block a user