forked from the-distro/ofborg
only fetch onee jbo at a time
This commit is contained in:
parent
e35c3d7575
commit
62d9869f8c
3 changed files with 3 additions and 1 deletions
|
@ -49,6 +49,7 @@ fn main() {
|
||||||
let cloner = checkout::cached_cloner(Path::new(&cfg.checkout.root));
|
let cloner = checkout::cached_cloner(Path::new(&cfg.checkout.root));
|
||||||
let nix = cfg.nix();
|
let nix = cfg.nix();
|
||||||
|
|
||||||
|
channel.basic_prefetch(1).unwrap();
|
||||||
channel.basic_consume(
|
channel.basic_consume(
|
||||||
worker::new(tasks::build::BuildWorker::new(cloner, nix, cfg.nix.system.clone())),
|
worker::new(tasks::build::BuildWorker::new(cloner, nix, cfg.nix.system.clone())),
|
||||||
format!("build-inputs-{}", cfg.nix.system.clone()).as_ref(),
|
format!("build-inputs-{}", cfg.nix.system.clone()).as_ref(),
|
||||||
|
|
|
@ -38,6 +38,7 @@ fn main() {
|
||||||
|
|
||||||
let mut channel = session.open_channel(2).unwrap();
|
let mut channel = session.open_channel(2).unwrap();
|
||||||
|
|
||||||
|
channel.basic_prefetch(1).unwrap();
|
||||||
channel.basic_consume(
|
channel.basic_consume(
|
||||||
worker::new(tasks::githubcommentfilter::GitHubCommentWorker::new(
|
worker::new(tasks::githubcommentfilter::GitHubCommentWorker::new(
|
||||||
cfg.acl(),
|
cfg.acl(),
|
||||||
|
|
|
@ -69,7 +69,7 @@ fn main() {
|
||||||
}));
|
}));
|
||||||
*/
|
*/
|
||||||
|
|
||||||
channel.basic_prefetch(1);
|
channel.basic_prefetch(1).unwrap();
|
||||||
channel.basic_consume(
|
channel.basic_consume(
|
||||||
worker::new(mrw),
|
worker::new(mrw),
|
||||||
"mass-rebuild-check-jobs",
|
"mass-rebuild-check-jobs",
|
||||||
|
|
Loading…
Reference in a new issue