idle: afk command, configurable session timeout, fix block_reason
Add `poc-daemon afk` to immediately mark Kent as away, allowing the idle timer to fire without waiting for the session active timeout. Add `poc-daemon session-timeout <secs>` to configure how long after the last message Kent counts as "present" (default 15min, persisted). Fix block_reason() to report "kent present" and "in turn" states that were checked in the tick but not in the diagnostic output.
This commit is contained in:
parent
05e0f1d5be
commit
55fdc3dad7
4 changed files with 66 additions and 2 deletions
|
|
@ -73,6 +73,8 @@ interface Daemon {
|
|||
debug @18 () -> (json :Text);
|
||||
|
||||
ewma @20 (value :Float64) -> (current :Float64);
|
||||
afk @21 () -> ();
|
||||
sessionTimeout @22 (seconds :Float64) -> ();
|
||||
|
||||
# Modules
|
||||
moduleCommand @15 (module :Text, command :Text, args :List(Text))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue