feat: parallelize package index update

This commit is contained in:
Patrick Schratz 2024-11-22 20:49:58 +01:00
commit a90d6b8431
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -27,16 +27,16 @@ steps:
# - rm -rf /mnt/cache/packages/*
- R -q -e 'pak::pak("git::https://gitlab.com/devxy/r-package-binaries/bincraftr.git")'
- cd /mnt/cache/packages
- R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = 2); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()'
- R -q -e 'options(crayon.enabled = TRUE); library(bincraftR); future::plan("multisession", workers = future::availableCores()); library(progressr); handlers(global = TRUE); handlers("progress"); upload_package_index()'
backend_options:
kubernetes:
resources:
requests:
memory: 2000Mi
memory: 3000Mi
cpu: 2000m
limits:
memory: 2000Mi
cpu: 2000m
memory: 3000Mi
cpu: 8000m
nodeSelector:
kubernetes.io/arch: 'amd64'