Fit larger Linux package inventories within bounded snapshots
Rust development slice / linux (push) Failing after 8s

This commit is contained in:
2026-11-18 20:20:10 +01:00
parent 55d159cab1
commit 1f60183b7e
3 changed files with 71 additions and 13 deletions
+1 -2
View File
@@ -513,8 +513,7 @@ impl<C: reconcile::SyncClock> Agent<C> {
.push(agent_update_catalog::observation(report, Utc::now()));
inventory["collection_completed_at"] = serde_json::json!(Utc::now());
}
let bytes = serde_json::to_vec(&inventory)?;
ensure!(bytes.len() <= 512 * 1024, "INVENTORY_WIRE_LIMIT");
let bytes = rmm_agent_linux::wire::encode_snapshot(inventory)?;
Ok((bytes, Utc::now().timestamp_millis()))
});
let _ = sender.blocking_send(result);