swarm-nats-auth: let the controller list the bash task statuses
This commit is contained in:
parent
503a56853a
commit
802151820c
1 changed files with 23 additions and 0 deletions
|
|
@ -26,6 +26,9 @@ use crate::TERM_SUBJECT_PREFIX;
|
|||
/// The KV bucket the task statuses are published into.
|
||||
pub const BUCKET: &str = "bash-task-status";
|
||||
|
||||
/// The stream backing [`BUCKET`]. `create_key_value` prefixes `KV_`.
|
||||
pub const STREAM: &str = "KV_bash-task-status";
|
||||
|
||||
/// How often the writer republishes a `running` status while the task's
|
||||
/// process lives, so a writer that died shows up as stale.
|
||||
pub const HEARTBEAT_S: i64 = 60;
|
||||
|
|
|
|||
Loading…
Reference in a new issue