diff options
| author | soryu <soryu@soryu.co> | 2026-01-17 05:37:47 +0000 |
|---|---|---|
| committer | soryu <soryu@soryu.co> | 2026-01-17 05:38:07 +0000 |
| commit | 2f62df1cc89a23a5bd30e1a3f68a39bcfce9665c (patch) | |
| tree | c658378488cf6db293f7ca71d3ca957249a6309e /makima/src/daemon/config.rs | |
| parent | 75d9644d44ba998a32ed14c072e883a75145ab72 (diff) | |
| download | soryu-2f62df1cc89a23a5bd30e1a3f68a39bcfce9665c.tar.gz soryu-2f62df1cc89a23a5bd30e1a3f68a39bcfce9665c.zip | |
Add heartbeat commits
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(), } } } |
