pub struct RetentionConfig {
pub lease_days: u64,
pub history_days: u64,
pub keep_runs_per_job: u64,
pub max_job_runs: u64,
}Expand description
How long ended leases and job history are kept. The daemon prunes once an hour.
Fields§
§lease_days: u64Released and expired leases, with their audit trail, are deleted this many days after they ended.
history_days: u64Job runs are deleted this many days after they ended, except the newest
keep_runs_per_job of each job.
keep_runs_per_job: u64Runs of each job kept regardless of age, so estimates survive long breaks. The estimator reads the newest 20.
max_job_runs: u64Hard cap on stored job runs; the oldest beyond it are deleted whatever their job.
Trait Implementations§
Source§impl Clone for RetentionConfig
impl Clone for RetentionConfig
Source§impl Debug for RetentionConfig
impl Debug for RetentionConfig
Source§impl Default for RetentionConfig
impl Default for RetentionConfig
Source§impl<'de> Deserialize<'de> for RetentionConfigwhere
RetentionConfig: Default,
impl<'de> Deserialize<'de> for RetentionConfigwhere
RetentionConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RetentionConfig
Source§impl PartialEq for RetentionConfig
impl PartialEq for RetentionConfig
Source§impl Serialize for RetentionConfig
impl Serialize for RetentionConfig
impl StructuralPartialEq for RetentionConfig
Auto Trait Implementations§
impl Forget for RetentionConfig
impl Freeze for RetentionConfig
impl RefUnwindSafe for RetentionConfig
impl Send for RetentionConfig
impl Sync for RetentionConfig
impl Unpin for RetentionConfig
impl UnsafeUnpin for RetentionConfig
impl UnwindSafe for RetentionConfig
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
Mutably borrows from an owned value. Read more