Repository navigation
Avoid parallel action conflicts - #112
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR implements serialization of certificate operations to prevent conflicts during parallel execution. The main focus is on protecting certificate actions that could interfere with each other when running simultaneously.
- Added file locking mechanism for default certificate operations to ensure sequential execution
- Implemented unique configuration file naming to prevent conflicts during certificate validation
- Added cleanup mechanisms for temporary files created during validation processes
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
DavidePrincipi
force-pushed
the
feat-7544-5
branch
2 times, most recently
from
September 29, 2025 10:48
4fa7ea9 to
8609ac7
Compare
Amygos
approved these changes
Sep 29, 2025
Create separate Traefik router config files, to avoid concurrency with parallel set-route action runs.
Use a process-wide lockfile to prevent conflict on new default cert generation. To start a request we modify the _default_cert.yml file and until it completes no other action run can access it. This commit protects the request_new_default_certificate() function with a process-wide lock file, that is released when the calling process terminates.
DavidePrincipi
force-pushed
the
feat-7544-5
branch
from
September 29, 2025 10:55
8609ac7 to
fd14a3b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR protects certificate actions from conflicts during parallel runs.
Refs NethServer/dev#7544