Stabilize resident coordinator thread ownership
This commit is contained in:
parent
e1c5c4e47f
commit
6442f379dc
2 changed files with 25 additions and 5 deletions
|
|
@ -12,7 +12,8 @@ use epiphany_core::{
|
|||
import_bifrost_persona_feedback_deliveries, ingest_resident_self_domain_pressure,
|
||||
load_epiphany_cultmesh_swarm_brake, load_resident_self_state, observe_process_instance,
|
||||
prepare_resident_self_launch, publish_resident_provider_readiness, resident_self_child_claim,
|
||||
resident_self_local_provider_status, terminate_process_instance,
|
||||
resident_coordinator_thread_id, resident_self_local_provider_status,
|
||||
terminate_process_instance,
|
||||
validate_persona_feedback_store_separation, validate_resident_self_store_separation,
|
||||
};
|
||||
use serde_json::json;
|
||||
|
|
@ -185,7 +186,7 @@ fn cycle(
|
|||
return Ok(ResidentSelfOutcome::Braked);
|
||||
}
|
||||
let launch = CoordinatorLaunch {
|
||||
turn_id: format!("resident-self-turn-{}", prepared.grant.grant_id),
|
||||
turn_id: resident_coordinator_thread_id(&args.policy.release_runtime_id)?,
|
||||
wake: epiphany_core::ResidentSelfWake::Explicit {
|
||||
objective: prepared.grant.objective.clone(),
|
||||
},
|
||||
|
|
@ -282,7 +283,7 @@ fn cycle(
|
|||
return Ok(ResidentSelfOutcome::Sleeping);
|
||||
};
|
||||
let launch = CoordinatorLaunch {
|
||||
turn_id: format!("resident-self-turn-{}", prepared.grant.grant_id),
|
||||
turn_id: resident_coordinator_thread_id(&args.policy.release_runtime_id)?,
|
||||
wake: epiphany_core::ResidentSelfWake::Explicit {
|
||||
objective: prepared.grant.objective.clone(),
|
||||
},
|
||||
|
|
|
|||
Reference in a new issue