fix: mission_runtime_pairing_code in single-row mapping + fmt
This commit is contained in:
@@ -152,20 +152,18 @@ async fn run_job(
|
||||
// the missions row; else fall back to the shared env-derived
|
||||
// gateway (pre-C3 missions + non-mission runs). This is what
|
||||
// isolates agents' workspace filesystem to that mission's repo.
|
||||
let mission_binding: Option<(Option<String>, Option<String>)> = sqlx::query_as::<
|
||||
_,
|
||||
(Option<String>, Option<String>),
|
||||
>(
|
||||
"SELECT m.runtime_endpoint, m.runtime_pairing_code
|
||||
let mission_binding: Option<(Option<String>, Option<String>)> =
|
||||
sqlx::query_as::<_, (Option<String>, Option<String>)>(
|
||||
"SELECT m.runtime_endpoint, m.runtime_pairing_code
|
||||
FROM topology_runs r
|
||||
JOIN missions m ON m.id = r.mission_id
|
||||
WHERE r.id = $1",
|
||||
)
|
||||
.bind(id)
|
||||
.fetch_optional(pool)
|
||||
.await
|
||||
.ok()
|
||||
.flatten();
|
||||
)
|
||||
.bind(id)
|
||||
.fetch_optional(pool)
|
||||
.await
|
||||
.ok()
|
||||
.flatten();
|
||||
let leaf_result = match mission_binding {
|
||||
Some((Some(url), Some(code))) => {
|
||||
ZeroClawDriveExecutor::from_env_for_gateway_with_code(url, code)
|
||||
|
||||
Reference in New Issue
Block a user