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

DM-48941: Only check out notebook repos once #407

Merged
merged 1 commit into from
Feb 18, 2025
Merged

Conversation

fajpunk
Copy link
Member

@fajpunk fajpunk commented Feb 14, 2025

Add a process-global notebook repo cache. Use this in the NotebookRunner business to only clone notebook repos once per process, not once per monkey.

The notebook repo refresh functionality complicates this a bit, see this comment

@fajpunk fajpunk force-pushed the tickets/DM-48941 branch 3 times, most recently from 5d1fc5e to 266f762 Compare February 17, 2025 23:22
@fajpunk fajpunk marked this pull request as ready for review February 17, 2025 23:30
@fajpunk fajpunk requested a review from rra February 17, 2025 23:31
@fajpunk fajpunk force-pushed the tickets/DM-48941 branch 4 times, most recently from baffea4 to f4b94dc Compare February 18, 2025 02:13
Copy link
Member

@rra rra left a comment

Choose a reason for hiding this comment

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

Nothing major here and I think the overall approach is fine as is, but as noted I would be inclined to never delete checkouts for now and implement reference counting in the long term.

@fajpunk fajpunk force-pushed the tickets/DM-48941 branch 2 times, most recently from f322957 to 9e9d29e Compare February 18, 2025 17:42
@fajpunk fajpunk requested a review from rra February 18, 2025 18:44
Copy link
Member

@rra rra left a comment

Choose a reason for hiding this comment

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

One minor note about commenting some behavior, but otherwise this looks great to me. Thanks!

Add a reference-counting process-global notebook repo cache.
Use this in the NotebookRunner business to only clone notebook repos once per process, not once per monkey.
@fajpunk fajpunk merged commit f7f97ed into main Feb 18, 2025
5 checks passed
@fajpunk fajpunk deleted the tickets/DM-48941 branch February 18, 2025 23:18
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