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

Allow plugin writers to create tasks that locks all of Pulp (within a domain) #4285

Closed
gerrod3 opened this issue Aug 16, 2023 · 0 comments · Fixed by #4286
Closed

Allow plugin writers to create tasks that locks all of Pulp (within a domain) #4285

gerrod3 opened this issue Aug 16, 2023 · 0 comments · Fixed by #4286

Comments

@gerrod3
Copy link
Contributor

gerrod3 commented Aug 16, 2023

On my work to implement #3358 I need a way to lock all of Pulp and prevent any other tasks from running while the migration occurs. In essence putting Pulp into a read only mode while the task runs.

We already semi-have this functionality with domains, as the domain href is added as a shared resource to each task in that domain. This prevents breaking a running task when updating/deleting a domain, as the domain will only be updated after all other tasks finish. We could enable this at all times even when domains are not enabled (as there is always a default domain) and allow plugin writers to exclusively lock on the current domain to create a 'global(domain)' lock on Pulp.

gerrod3 added a commit to gerrod3/pulpcore that referenced this issue Aug 16, 2023
gerrod3 added a commit to gerrod3/pulpcore that referenced this issue Aug 16, 2023
gerrod3 added a commit to gerrod3/pulpcore that referenced this issue Aug 16, 2023
gerrod3 added a commit to gerrod3/pulpcore that referenced this issue Aug 16, 2023
ipanova pushed a commit that referenced this issue Aug 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant