Skip to content

Keep repo archives cached for later executed tasks#449

Closed
mrnugget wants to merge 2 commits into
mainfrom
mrn/keep-archives
Closed

Keep repo archives cached for later executed tasks#449
mrnugget wants to merge 2 commits into
mainfrom
mrn/keep-archives

Conversation

@mrnugget

@mrnugget mrnugget commented Feb 1, 2021

Copy link
Copy Markdown
Contributor

This is a follow-up to fix the issue discovered by @eseliger here: #442 (comment)

Short version: the previous implementation would only avoid deleting an
archive if there were currently active tasks holding references to it.
If tasks that need the same archive would execute sequentially, though,
the archive would be downloaded, deleted, downloaded again.

This here is a fix for the issue by first marking all repository
archives for later use and only once all marks have been turned into
references and those references have been closed is the archive deleted.

This is a follow-up to fix the issue discovered by @eseliger here: #442 (comment)

Short version: the previous implementation would only avoid deleting an
archive if there were *currently active tasks* holding references to it.
If tasks that need the same archive would execute sequentially, though,
the archive would be downloaded, deleted, downloaded again.

This here is a fix for the issue by first marking all repository
archives for later use and only once all marks have been turned into
references and those references have been closed is the archive deleted.
@mrnugget mrnugget requested review from a team and keegancsmith February 1, 2021 14:04
@mrnugget

mrnugget commented Feb 1, 2021

Copy link
Copy Markdown
Contributor Author

Going with #450 after discussing this with @eseliger :)

@mrnugget mrnugget closed this Feb 1, 2021
@keegancsmith keegancsmith deleted the mrn/keep-archives branch November 11, 2025 20:52
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.

1 participant