That's here:
|
let read_result_closure = async { |
|
let mut buf = BytesMut::with_capacity(digest.size_bytes); |
|
while let Some(response) = stream.next().await { |
|
// Record the observed time to receive the first response for this read. |
|
if let Some(start) = start_opt.take() { |
|
if let Some(workunit_store_handle) = workunit_store::get_workunit_store_handle() { |
|
let timing: Result<u64, _> = |
|
Instant::now().duration_since(start).as_micros().try_into(); |
|
if let Ok(obs) = timing { |
|
workunit_store_handle |
|
.store |
|
.record_observation(ObservationMetric::RemoteStoreTimeToFirstByteMicros, obs); |
|
} |
|
} |
|
} |
|
|
|
buf.extend_from_slice(&(response?).data); |
|
} |
|
Ok(buf.freeze()) |
|
}; |
For things like ~GB pytorch wheel zips; that could be problematic.
That's here:
pants/src/rust/engine/fs/store/src/remote.rs
Lines 383 to 402 in d8fba9a
For things like ~GB pytorch wheel zips; that could be problematic.