fix: mission_runtime_pairing_code in single-row mapping + fmt
This commit is contained in:
@@ -55,7 +55,6 @@ const EDGE_NETWORK: &str = "clawmates_edge";
|
|||||||
/// by `clawmates-runtime.service`.
|
/// by `clawmates-runtime.service`.
|
||||||
const MISSIONS_HOST_ROOT: &str = "/var/lib/clawmates-missions";
|
const MISSIONS_HOST_ROOT: &str = "/var/lib/clawmates-missions";
|
||||||
|
|
||||||
|
|
||||||
/// Deterministic docker container name for a mission's runtime.
|
/// Deterministic docker container name for a mission's runtime.
|
||||||
/// Uses the full UUID hex — UUIDv7 encodes time in the leading bytes,
|
/// Uses the full UUID hex — UUIDv7 encodes time in the leading bytes,
|
||||||
/// so a short prefix isn't guaranteed unique across missions minted
|
/// so a short prefix isn't guaranteed unique across missions minted
|
||||||
|
|||||||
@@ -152,10 +152,8 @@ async fn run_job(
|
|||||||
// the missions row; else fall back to the shared env-derived
|
// the missions row; else fall back to the shared env-derived
|
||||||
// gateway (pre-C3 missions + non-mission runs). This is what
|
// gateway (pre-C3 missions + non-mission runs). This is what
|
||||||
// isolates agents' workspace filesystem to that mission's repo.
|
// isolates agents' workspace filesystem to that mission's repo.
|
||||||
let mission_binding: Option<(Option<String>, Option<String>)> = sqlx::query_as::<
|
let mission_binding: Option<(Option<String>, Option<String>)> =
|
||||||
_,
|
sqlx::query_as::<_, (Option<String>, Option<String>)>(
|
||||||
(Option<String>, Option<String>),
|
|
||||||
>(
|
|
||||||
"SELECT m.runtime_endpoint, m.runtime_pairing_code
|
"SELECT m.runtime_endpoint, m.runtime_pairing_code
|
||||||
FROM topology_runs r
|
FROM topology_runs r
|
||||||
JOIN missions m ON m.id = r.mission_id
|
JOIN missions m ON m.id = r.mission_id
|
||||||
|
|||||||
@@ -214,6 +214,7 @@ pub async fn get(pool: &PgPool, id: Uuid, workspace_id: Uuid) -> Result<Option<M
|
|||||||
target_node_id: r.get("target_node_id"),
|
target_node_id: r.get("target_node_id"),
|
||||||
runtime_container_name: r.get("runtime_container_name"),
|
runtime_container_name: r.get("runtime_container_name"),
|
||||||
runtime_endpoint: r.get("runtime_endpoint"),
|
runtime_endpoint: r.get("runtime_endpoint"),
|
||||||
|
runtime_pairing_code: r.get("runtime_pairing_code"),
|
||||||
created_at: r.get("created_at"),
|
created_at: r.get("created_at"),
|
||||||
updated_at: r.get("updated_at"),
|
updated_at: r.get("updated_at"),
|
||||||
completed_at: r.get("completed_at"),
|
completed_at: r.get("completed_at"),
|
||||||
|
|||||||
Reference in New Issue
Block a user