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

Unlock repository during collection import #1105

Open
newswangerd opened this issue Jul 6, 2022 · 0 comments
Open

Unlock repository during collection import #1105

newswangerd opened this issue Jul 6, 2022 · 0 comments

Comments

@newswangerd
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Right now collection imports lock the entire repository that the collection is being imported into (

temp_file.pk, distro.repository, **kwargs
). This makes it so that only one collection can be imported at a time. This is problematic because the import task can take a long time, and doesn't need to maintain a lock on the repository for the full duration of the import.

Describe the solution you'd like
Remove the repository lock during collection import and have the collection import launch a subtask (with the repository lock) to move the collection into the selected repository after the import is successful.

Additional context
This is needed for repository management in galaxy_ng to get rid of inbound repositories.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants