Skip to content

fix: fold LFS snapshot scheduling into scheduleSnapshotJobs#264

Merged
joshfriend merged 1 commit intomainfrom
fix-lfs-snapshot-schedule
Apr 16, 2026
Merged

fix: fold LFS snapshot scheduling into scheduleSnapshotJobs#264
joshfriend merged 1 commit intomainfrom
fix-lfs-snapshot-schedule

Conversation

@joshfriend
Copy link
Copy Markdown
Contributor

@joshfriend joshfriend commented Apr 16, 2026

scheduleLFSSnapshotJobs was a separate function that needed to be called alongside scheduleSnapshotJobs at every call site. Two paths added before LFS support (writeSnapshotSpool and scheduleDeferredMirrorRestore) were missing the call, so repos first initialized through cold-start or on-demand spool never had their LFS periodic job registered.

This folds the LFS periodic job into scheduleSnapshotJobs itself so there's only one function to call and every code path gets LFS scheduling automatically.

Discovered because ios-register never had an LFS snapshot generated. It was always initialized through the cold-start path. Other repos like cash-android worked by luck: their mirrors survived pod restarts on the persistent volume, so warmExistingRepos (which had the correct call) kept their LFS jobs scheduled.

@joshfriend joshfriend requested a review from a team as a code owner April 16, 2026 19:09
@joshfriend joshfriend requested review from alecthomas and removed request for a team April 16, 2026 19:09
scheduleLFSSnapshotJobs was missing from the writeSnapshotSpool and
scheduleDeferredMirrorRestore code paths, so repos first initialized
through cold-start or on-demand spool never had LFS snapshots generated.
Fold the LFS periodic job into scheduleSnapshotJobs so every caller
gets it automatically.
@joshfriend joshfriend force-pushed the fix-lfs-snapshot-schedule branch from a2a8dec to c513262 Compare April 16, 2026 19:14
@joshfriend joshfriend merged commit 9d7212a into main Apr 16, 2026
8 checks passed
@joshfriend joshfriend deleted the fix-lfs-snapshot-schedule branch April 16, 2026 19:58
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