oshied / directord

Directord is a powerful automation platform and protocol built to drive infrastructure and applications across the physical, edge, IoT, and cloud boundaries; efficient, pseudo-real-time, at scale, made simple.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gracefully handle reboots

mwhahaha opened this issue · comments

Is your feature request related to a problem? Please describe.

In order to support rebooting a node, we need a graceful stop and restart of client actions.

Describe the solution you'd like

In theory if a reboot a issued, the client should stop collecting any new work, finish up running tasks, and reboot. Once the reboot is complete, notification of the reboot back to the server should be handled.

Additional thoughts

There is also an issue with QUERY actions being run while a node is rebooting as it will be unavailable. We might want to make the reboot logic occur server side to ensure that if a node is currently rebooting, processing is paused.