pub struct SchedulerDaemonConfig {
pub pid_file: String,
pub log_file: String,
pub catch_up: bool,
pub tick_secs: u64,
pub shutdown_grace_secs: u64,
}Expand description
Daemon mode configuration for zeph serve, nested under [scheduler.daemon] in TOML.
Controls the behaviour of the background scheduler process started by zeph serve.
The pid file must be on a local filesystem; NFS mounts may not provide reliable
exclusive locking.
Log rotation requires logrotate copytruncate or a SIGHUP signal; the daemon does
not rotate logs internally (append-only log file).
§Platform defaults
- macOS: pid
~/Library/Application Support/zeph/zeph.pid, log~/Library/Caches/zeph/zeph.log - Linux: pid
$XDG_STATE_HOME/zeph/zeph.pid, log$XDG_STATE_HOME/zeph/zeph.log
§Example (TOML)
[scheduler.daemon]
pid_file = "~/.local/state/zeph/zeph.pid"
log_file = "~/.local/state/zeph/zeph.log"
catch_up = true
tick_secs = 60
shutdown_grace_secs = 30Fields§
§pid_file: StringPath to the PID file. Must reside on a local filesystem for reliable locking.
log_file: StringPath to the daemon log file (append-only; rotated externally).
catch_up: boolWhen true, fire overdue periodic tasks once on startup before entering the
regular tick loop. At most one missed occurrence per task is replayed.
tick_secs: u64Tick interval in seconds (clamped to 5..=3600). Default: 60.
shutdown_grace_secs: u64Graceful shutdown window in seconds: how long to wait for in-flight tasks
after a SIGTERM before forcing an exit. Default: 30.
Trait Implementations§
Source§impl Clone for SchedulerDaemonConfig
impl Clone for SchedulerDaemonConfig
Source§fn clone(&self) -> SchedulerDaemonConfig
fn clone(&self) -> SchedulerDaemonConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more