File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ ENV PATH=/root/.cargo/bin:$PATH
2929# and doing a full build with it.
3030WORKDIR /source
3131COPY Cargo.lock Cargo.toml /source/
32+ COPY .cargo /source/.cargo
3233RUN mkdir -p /source/src && \
3334 echo "fn main() {}" > /source/src/main.rs && \
3435 echo "fn main() {}" > /source/build.rs
Original file line number Diff line number Diff line change @@ -160,6 +160,9 @@ impl<'a> Worker<'a> {
160160 let krate = if let Some ( next) = ( self . next_crate ) ( ) ? {
161161 next
162162 } else {
163+ // Backoff from calling the server again, to reduce load when we're spinning until
164+ // the next experiment is ready.
165+ std:: thread:: sleep ( Duration :: from_secs ( rand:: random_range ( 3 ..10 ) ) ) ;
163166 // We're done if no more crates left.
164167 return Ok ( ( ) ) ;
165168 } ;
You can’t perform that action at this time.
0 commit comments