Rust development slice / linux (push) Failing after 7s
Bind the administrative connection-205 review to original signed history and preserve closed readiness. Include the qualified server dependency closure, UI review, native ARM64 build provenance, and guarded deployment evidence. Migration, API/gateway replacement and TLS checks passed with unchanged job authority, protected mounts and time/database services; native Windows receipt application remains separate.
21 lines
767 B
Rust
21 lines
767 B
Rust
//! The first Windows reboot capability is deliberately a fixed, separately
|
|
//! enabled SYSTEM action. Existing Linux Reboot payload bytes are unchanged.
|
|
use crate::jobs::{Action, JobPayload};
|
|
pub const CAPABILITY: &str = "windows.reboot/1";
|
|
pub const RECONNECT_SECONDS: u32 = 180;
|
|
pub const RUNTIME_SECONDS: u32 = 60;
|
|
pub const ANNOUNCEMENT_SECONDS: u32 = 5;
|
|
pub fn supported(job: &JobPayload) -> bool {
|
|
job.execution_identity == "system"
|
|
&& job.max_runtime_seconds == RUNTIME_SECONDS
|
|
&& (1..=65536).contains(&job.max_output_bytes)
|
|
&& job.action.validate()
|
|
&& matches!(
|
|
job.action,
|
|
Action::Reboot {
|
|
reconnect_timeout_seconds: RECONNECT_SECONDS,
|
|
..
|
|
}
|
|
)
|
|
}
|