Add human WebUI closure of unknown jobs as final closed_unknown state (spec 1.31); bound agent sync restart interval
Rust development slice / linux (push) Failing after 7s

This commit is contained in:
2026-11-17 11:13:36 +01:00
parent 2660f6a88d
commit d6dfd01a9c
11 changed files with 363 additions and 29 deletions
+4 -1
View File
@@ -738,12 +738,15 @@ pub enum JobState {
Cancelled,
Expired,
Unknown,
/// A human closed an unknown attempt in the WebUI. The effect stays
/// unknown; the attempt is final and is never retried or reinterpreted.
ClosedUnknown,
}
impl JobState {
pub fn terminal(self) -> bool {
matches!(
self,
Self::Succeeded | Self::Failed | Self::Cancelled | Self::Expired
Self::Succeeded | Self::Failed | Self::Cancelled | Self::Expired | Self::ClosedUnknown
)
}
pub fn allows(self, next: Self) -> bool {