fmt: mission_runtime sweeper
This commit is contained in:
@@ -287,14 +287,8 @@ async fn sweep_once(pool: &sqlx::PgPool, grace: std::time::Duration) -> Result<(
|
|||||||
// sweeper doesn't retry forever.
|
// sweeper doesn't retry forever.
|
||||||
eprintln!("mission_runtime::sweeper: teardown mission {id}: {e}");
|
eprintln!("mission_runtime::sweeper: teardown mission {id}: {e}");
|
||||||
}
|
}
|
||||||
if let Err(e) = cm_db::repo::missions::set_runtime_binding(
|
if let Err(e) =
|
||||||
pool,
|
cm_db::repo::missions::set_runtime_binding(pool, id, workspace_id, None, None).await
|
||||||
id,
|
|
||||||
workspace_id,
|
|
||||||
None,
|
|
||||||
None,
|
|
||||||
)
|
|
||||||
.await
|
|
||||||
{
|
{
|
||||||
eprintln!("mission_runtime::sweeper: clear binding for {id}: {e}");
|
eprintln!("mission_runtime::sweeper: clear binding for {id}: {e}");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user