hive-agent: a logged-in agent polls the swarm login, and logs out when it is deleted
wait_for_login read the store leaf only while the agent waited for a login. A logged-in agent now reads it every 5 minutes, and a paused one once before it resumes, so a login made or deleted in the swarm UI reaches an agent that never failed. A newer version is installed; a store that answers nothing stored after a version was installed means the stored login was deleted, and the agent is logged out as /api/logout does it, with the recorded version forgotten so the next login installs. A read that fails changes nothing.
This commit is contained in:
parent
71a4d1d255
commit
a2c9e9a8d4
1 changed files with 188 additions and 23 deletions
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
mod actions;
|
||||
mod auth;
|
||||
pub(crate) use auth::force_logout;
|
||||
mod proxy;
|
||||
mod screen;
|
||||
mod state;
|
||||
|
|
|
|||
Loading…
Reference in a new issue