fc-evaulator: allow fail-fast behaviour

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I1da41766f1c499347279c41f2316f4376a6a6964
This commit is contained in:
raf 2026-02-16 21:05:12 +03:00
commit 235c9834b7
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
5 changed files with 30 additions and 134 deletions

View file

@ -62,6 +62,10 @@ pub struct EvaluatorConfig {
pub work_dir: PathBuf,
pub restrict_eval: bool,
pub allow_ifd: bool,
/// Whether to abort on the first evaluation cycle error instead of logging
/// and retrying.
pub strict_errors: bool,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@ -70,6 +74,11 @@ pub struct QueueRunnerConfig {
pub poll_interval: u64,
pub build_timeout: u64,
pub work_dir: PathBuf,
/// When true, abort on the first runner loop error instead of logging and
/// retrying.
#[serde(default)]
pub strict_errors: bool,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@ -504,6 +513,7 @@ impl Default for EvaluatorConfig {
work_dir: PathBuf::from("/tmp/fc-evaluator"),
restrict_eval: true,
allow_ifd: false,
strict_errors: false,
}
}
}
@ -515,6 +525,7 @@ impl Default for QueueRunnerConfig {
poll_interval: 5,
build_timeout: 3600,
work_dir: PathBuf::from("/tmp/fc-queue-runner"),
strict_errors: false,
}
}
}