diff options
Diffstat (limited to 'makima/src/daemon/config.rs')
| -rw-r--r-- | makima/src/daemon/config.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/makima/src/daemon/config.rs b/makima/src/daemon/config.rs index 512b822..476b57e 100644 --- a/makima/src/daemon/config.rs +++ b/makima/src/daemon/config.rs @@ -213,12 +213,21 @@ pub struct ProcessConfig { /// Bubblewrap sandbox configuration. #[serde(default)] pub bubblewrap: BubblewrapConfig, + + /// Interval in seconds between heartbeat commits (WIP checkpoints). + /// Set to 0 to disable. Default: 300 (5 minutes). + #[serde(default = "default_heartbeat_commit_interval", alias = "heartbeatcommitintervalsecs")] + pub heartbeat_commit_interval_secs: u64, } fn default_claude_command() -> String { "claude".to_string() } +fn default_heartbeat_commit_interval() -> u64 { + 300 // 5 minutes +} + fn default_max_tasks() -> u32 { 4 } @@ -235,6 +244,7 @@ impl Default for ProcessConfig { default_timeout_secs: 0, env_vars: HashMap::new(), bubblewrap: BubblewrapConfig::default(), + heartbeat_commit_interval_secs: default_heartbeat_commit_interval(), } } } |
