Skip to content

Conversation

@mrnugget
Copy link
Contributor

@mrnugget mrnugget commented Feb 1, 2021

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
Copy link
Contributor Author

mrnugget commented Feb 1, 2021

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

@mrnugget mrnugget closed this Feb 1, 2021
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