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
Rust development slice / linux (push) Failing after 7s
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user