]> arthur.barton.de Git - netdata.git/commit - python.d/python_modules/base.py
Fix occasional crashes in python plugins
authorMagnus Kessler <Magnus.Kessler@gmx.net>
Thu, 27 Oct 2016 09:02:02 +0000 (10:02 +0100)
committerMagnus Kessler <Magnus.Kessler@gmx.net>
Thu, 27 Oct 2016 09:10:45 +0000 (10:10 +0100)
commit72b9c272ccf38782bf6fbcc98810e66ae376a46b
tree654cc0ca8736be19f62c2b7e414b17e02c5e977f
parent7e5402d248b63c9ab62996d80184f0e5bd776b70
Fix occasional crashes in python plugins

Occasionally python plugins such as the nginx plugin crash with

```
Exception in thread local:
Traceback (most recent call last):
  File "/usr/lib64/python3.4/threading.py", line 911, in _bootstrap_inner
    self.run()
  File "/usr/libexec/netdata/python.d/python_modules/base.py", line 166, in run
    time.sleep(self.timetable['next'] - time.time())
ValueError: sleep length must be non-negative
```

Afterwards no further data is collected for the plugin until netdata
is restarted
python.d/python_modules/base.py