Fix Windows job scheduling starvation and retain original helper Apply worker
Rust development slice / linux (push) Failing after 7s
Rust development slice / linux (push) Failing after 7s
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user