Fix Windows job scheduling starvation and retain original helper Apply worker
Rust development slice / linux (push) Failing after 7s

This commit is contained in:
2026-11-16 11:22:53 +01:00
parent 056665be9e
commit c4100d80cd
6 changed files with 412 additions and 8 deletions
+6
View File
@@ -72,6 +72,9 @@ pub struct Applied {
pub helper_instruction: Option<HelperInstruction>,
pub reason: String,
}
/// Diagnostics only; never accepted as an authorization or reusable lease.
#[derive(Clone,Copy)]
pub struct GateObservation {pub signed_ready:bool,pub local_applied:bool,pub helper_ack_pending:bool}
struct Gate {
channel: Channel,
until: DateTime<Utc>,
@@ -119,6 +122,9 @@ impl<V: Ed25519Verifier> ClientSync<V> {
self.channel = None;
self.pending = None;
}
pub fn gate_observation(&self)->Option<GateObservation> {
self.gate.as_ref().map(|g|GateObservation{signed_ready:g.ready,local_applied:g.local_applied,helper_ack_pending:g.helper.is_some()})
}
pub fn validity_deadline(&self) -> Option<DateTime<Utc>> {
self.gate.as_ref().map(|gate| gate.until)
}