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

Adopt new "shared_resources" / "exclusive_resources" API #2101

Merged
merged 1 commit into from
Aug 26, 2021

Conversation

dralley
Copy link
Contributor

@dralley dralley commented Aug 26, 2021

@pulpbot
Copy link
Member

pulpbot commented Aug 26, 2021

Attached issue: https://pulp.plan.io/issues/9255

@@ -137,7 +137,7 @@ def sync(self, request, pk):

result = dispatch(
tasks.synchronize,
[repository, remote],
exclusive_resources=[repository, remote],
Copy link
Member

Choose a reason for hiding this comment

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

I believe, the remote might be shared here.

@@ -328,7 +333,8 @@ def _process_config(self, config):
dest_repo = NamedModelViewSet().get_resource(entry["dest_repo"], RpmRepository)
r["source_repo_version"] = source_version.pk
r["dest_repo"] = dest_repo.pk
repos.extend((source_version.repository, dest_repo))
shared_repos.append(source_version.repository)
exclusive_repos.append(dest_repo)
Copy link
Member

Choose a reason for hiding this comment

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

👍

@mdellweg
Copy link
Member

Do you want to flip the flag in the CI to actually trigger this?

@dralley
Copy link
Contributor Author

dralley commented Aug 26, 2021

@mdellweg I think so - but maybe in a followup PR so that we can unblock the installer

@dralley dralley merged commit 28b3417 into pulp:master Aug 26, 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.

None yet

4 participants