pub struct JanitorOptions {
pub ttl_hours: u64,
pub dry_run: bool,
}Expand description
Options controlling the worktree janitor.
Fields§
§ttl_hours: u64Minimum age (in hours) of the worktree directory before it is eligible for removal.
A worktree whose filesystem mtime is more recent than this threshold is skipped even if the task is already in a terminal state. This provides a safety buffer against races (e.g. review agent still writing when the janitor runs).
Default: 24. Configurable via workflow.worktree_janitor_ttl_hours in config.
dry_run: boolWhen true, log what would be done but skip all destructive operations.
Configurable via workflow.worktree_janitor_dry_run: true in config.
Implementations§
Source§impl JanitorOptions
impl JanitorOptions
Sourcepub fn from_config() -> Self
pub fn from_config() -> Self
Read options from the global config, falling back to defaults.
Trait Implementations§
Source§impl Clone for JanitorOptions
impl Clone for JanitorOptions
Source§impl Debug for JanitorOptions
impl Debug for JanitorOptions
Auto Trait Implementations§
impl Freeze for JanitorOptions
impl RefUnwindSafe for JanitorOptions
impl Send for JanitorOptions
impl Sync for JanitorOptions
impl Unpin for JanitorOptions
impl UnsafeUnpin for JanitorOptions
impl UnwindSafe for JanitorOptions
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
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> ⓘ
Converts
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> ⓘ
Converts
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 more