]> git.ipfire.org Git - collecty.git/commit
daemon: Drop our own scheduler and use sched
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 20 Sep 2020 13:54:54 +0000 (13:54 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 20 Sep 2020 13:54:54 +0000 (13:54 +0000)
commit6e603f14125df4c9eb07ac460aae6baf78902e70
tree3b828b5e0635ba6a11f3c2479b057cc65c31a38e
parenta650ac0ad4d717b6936e0be79a59689a4a891a6f
daemon: Drop our own scheduler and use sched

Our own implementation was trying to be very accurate which
comes with a large overhead and is largely unnecessary.

This patch removes the threading approach which kept multiple
timers and replaces it with one simple deadline scheduler.

Plugins will have to ensure that they are not blocking the
collection.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/collecty/daemon.py
src/collecty/plugins/base.py