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

RFE: atomic operation for multiple component promotions #37

Closed
javierpena opened this issue Feb 27, 2020 · 1 comment
Closed

RFE: atomic operation for multiple component promotions #37

javierpena opened this issue Feb 27, 2020 · 1 comment

Comments

@javierpena
Copy link
Contributor

When using components and trying to promote multiple commits at the same time, we have to iterate though all of them and call the /api/promote endpoint multiple times.

When this is done, we are creating a small window where a job could try to get the newly aggregated repo, and that would be quickly replaced by a new repo... So it will be hard to synchronize jobs and they may try to use different aggregates.

Ideally the DLRN api and dlrnapi client will support a batch operation where a user can send multiple commit and distro hash ids for a promotion and the updated repo and aggregated hash is ONLY written once. This would eliminate the issue.

@javierpena
Copy link
Contributor Author

This was fixed with https://softwarefactory-project.io/r/17748

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

No branches or pull requests

1 participant