openwisp / openwisp-config

OpenWRT configuration agent for OpenWISP Controller
https://openwisp.io/docs/stable/openwrt-config-agent/
GNU General Public License v3.0
374 stars 59 forks source link

[feature] Send a hotplug event after each check cycle #198

Closed okraits closed 9 months ago

okraits commented 1 year ago

I suggest to send a hotplug event after each check cycle, before going to sleep. This would be at that position:

https://github.com/openwisp/openwisp-config/blob/master/openwisp-config/files/openwisp.agent#L958

This would make it possible to trigger an action each time the client has checked for configuration changes.

We could name it end-of-cycle, end-of-pass, end-of-run, sleep.