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

Support parallel execution of repoctl #59

Open
cassava opened this issue Sep 8, 2020 · 1 comment
Open

Support parallel execution of repoctl #59

cassava opened this issue Sep 8, 2020 · 1 comment
Labels
bug this is a bug that is contrary to the design of the program enhancement this could improve the capabilities/design of the program refactor this won't modify behavior but should make the code better
Milestone

Comments

@cassava
Copy link
Owner

cassava commented Sep 8, 2020

Currently, repoctl does not take parallel execution into account. This can lead to cases where a repoctl add or repoctl update does bad stuff.

This is probably strongly related to issues #47, #49, #57, and #58.

@cassava cassava added this to the Version 0.22 milestone Sep 19, 2020
@cassava cassava added bug this is a bug that is contrary to the design of the program enhancement this could improve the capabilities/design of the program refactor this won't modify behavior but should make the code better labels Sep 19, 2020
@AladW
Copy link

AladW commented Apr 9, 2022

I don't know the precise way in which repoctl writes to the local repository, but it should suffice to flock on the repository root. e.g.

exec 200< /home/custompkgs
( flock -w $wait_for_seconds -n 200 || exit 1
  # ... do stuff with repository
)

@cassava cassava modified the milestones: Version 0.22, Version 0.23 Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug this is a bug that is contrary to the design of the program enhancement this could improve the capabilities/design of the program refactor this won't modify behavior but should make the code better
Projects
None yet
Development

No branches or pull requests

2 participants