Skip to content

Commit

Permalink
Change download concurrency (#23)
Browse files Browse the repository at this point in the history
## πŸ“– Description

Two small configuration improvements:
- Set the concurrency value to 1 as it seems unstable with the default
of 4.
- Disable auto pruning. Ephemeral runners are very unlikely to use
enough storage for this to be a problem and disabling it avoids having
to fetch the entire 100GB+ image.
  • Loading branch information
randy-sab-roy committed Feb 14, 2024
1 parent a76e073 commit 39bc197
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions host/launch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function cleanup {

function pull_image {
log_output "[HOST] ⬇️ Downloading from remote registry"
TART_REGISTRY_USERNAME=$REGISTRY_USERNAME TART_REGISTRY_PASSWORD=$REGISTRY_PASSWORD tart pull "$REGISTRY_PATH"
TART_REGISTRY_USERNAME=$REGISTRY_USERNAME TART_REGISTRY_PASSWORD=$REGISTRY_PASSWORD tart pull "$REGISTRY_PATH" --concurrency 1
}

function run_loop {
Expand All @@ -54,7 +54,7 @@ function run_loop {

log_output "[HOST] πŸ’» Launching macOS VM"
INSTANCE_NAME=runner_"$RUNNER_NAME"_"$RUN_ID"
tart clone "$REGISTRY_PATH" "$INSTANCE_NAME"
TART_NO_AUTO_PRUNE="" tart clone "$REGISTRY_PATH" "$INSTANCE_NAME"
trap 'log_output "[HOST] πŸͺ“ Killing the VM"; tart delete $INSTANCE_NAME; cleanup' SIGINT SIGTERM
tart run --no-graphics $INSTANCE_NAME >/dev/null 2>&1 &

Expand Down

0 comments on commit 39bc197

Please sign in to comment.