Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option for delayed pre-pull #822

Merged
merged 4 commits into from
Jan 12, 2025
Merged

Option for delayed pre-pull #822

merged 4 commits into from
Jan 12, 2025

Conversation

fkorotkov
Copy link
Contributor

This will allow us to make rollouts during peak hours without downtimes.

Once we have .system_info it will be easier to see which image is used for a run.

This will allow us to make rollouts during peak hours without downtimes.

Once we have `.system_info` it will be easier to see which image is used for a run.
@fkorotkov fkorotkov requested a review from edigaryev January 8, 2025 14:56
lazyPull := false

if worker.tartPrePull != nil && worker.tartPrePull.NeedsPrePull() {
// Pre-pull the configured Tart VM images first
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's say we have configured ghcr.io/cirruslabs/macos-runner:sonoma for the pre-pull.

A new version of this image gets released, and we skip this code block because we've already performed a check recently, but before the image was available.

As a result, lazyPull won't be set to true, and Warmup() below will pull the new image. This will likely happen on all the workers, which corresponds to the current behavior 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad! You are absolutely correct. What about this logic in 84f7462?

@fkorotkov fkorotkov merged commit 636cd80 into master Jan 12, 2025
11 checks passed
@fkorotkov fkorotkov deleted the fedor-pre-pull-interval branch January 12, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants