pub struct TaskConfig {
pub retries: Option<u64>,
pub container: Option<String>,
pub shell: Option<String>,
pub cpu_limit_behavior: TaskResourceLimitBehavior,
pub memory_limit_behavior: TaskResourceLimitBehavior,
pub cache_dir: Option<PathBuf>,
pub cache: CallCachingMode,
pub digests: ContentDigestMode,
}Expand description
Represents task evaluation configuration.
Fields§
§retries: Option<u64>The default maximum number of retries to attempt if a task fails.
A task’s max_retries requirement will override this value.
Defaults to 0 (no retries).
container: Option<String>The default container to use if a container is not specified in a task’s requirements.
Defaults to ubuntu:latest.
shell: Option<String>The default shell to use for tasks.
Defaults to bash.
The shell must support a -c option to run a specific script file (i.e.
an evaluated task command).
Note that this option affects all task commands, so every container that is used must contain the specified shell.
If using this setting causes your tasks to fail, please do not file an issue.
cpu_limit_behavior: TaskResourceLimitBehaviorThe behavior when a task’s cpu requirement cannot be met.
memory_limit_behavior: TaskResourceLimitBehaviorThe behavior when a task’s memory requirement cannot be met.
cache_dir: Option<PathBuf>The call cache directory to use for caching task execution results.
Defaults to an operating system specific cache directory for the user.
cache: CallCachingModeThe call caching mode to use for tasks.
digests: ContentDigestModeThe content digest mode to use.
Used as part of call caching.
Implementations§
Trait Implementations§
Source§impl Clone for TaskConfig
impl Clone for TaskConfig
Source§fn clone(&self) -> TaskConfig
fn clone(&self) -> TaskConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TaskConfig
impl Debug for TaskConfig
Source§impl Default for TaskConfig
impl Default for TaskConfig
Source§fn default() -> TaskConfig
fn default() -> TaskConfig
Source§impl<'de> Deserialize<'de> for TaskConfig
impl<'de> Deserialize<'de> for TaskConfig
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>,
Auto Trait Implementations§
impl Freeze for TaskConfig
impl RefUnwindSafe for TaskConfig
impl Send for TaskConfig
impl Sync for TaskConfig
impl Unpin for TaskConfig
impl UnwindSafe for TaskConfig
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 more