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 moreSource§impl Debug for SchedulerDaemonConfig
impl Debug for SchedulerDaemonConfig
Source§impl Default for SchedulerDaemonConfig
impl Default for SchedulerDaemonConfig
Source§fn default() -> SchedulerDaemonConfig
fn default() -> SchedulerDaemonConfig
Source§impl<'de> Deserialize<'de> for SchedulerDaemonConfig
impl<'de> Deserialize<'de> for SchedulerDaemonConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SchedulerDaemonConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SchedulerDaemonConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for SchedulerDaemonConfig
impl Serialize for SchedulerDaemonConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for SchedulerDaemonConfig
impl RefUnwindSafe for SchedulerDaemonConfig
impl Send for SchedulerDaemonConfig
impl Sync for SchedulerDaemonConfig
impl Unpin for SchedulerDaemonConfig
impl UnsafeUnpin for SchedulerDaemonConfig
impl UnwindSafe for SchedulerDaemonConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request