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

feat: add concurrency to workflow #272

Merged
merged 2 commits into from
Mar 11, 2024

Conversation

virtualroot
Copy link
Contributor

Allow only one workflow at that time.

If a second workflow is triggered, it will be put in pending state, and only start once the first workflow finish.
If the workflow is triggered a third time while the first one is running, the second workflow is canceled, and the third takes over the pending state.

Fix #163.

Allow only one workflow at that time.

If a second workflow is triggered, it will be put in pending state, and
only start once the first workflow finish.
If the workflow is triggered a third time while the first one is
running, the second workflow is canceled, and the third takes over the
pending state.

Fix opentofu#163.

Signed-off-by: Alejandro Lazaro <[email protected]>
@virtualroot virtualroot force-pushed the add-concurrency-group branch from 16296e0 to cba412e Compare March 2, 2024 01:13
@Yantrio Yantrio requested a review from cube2222 March 4, 2024 11:33
We may want to run it on branches as validation at some point, but for now a global lock should suffice.

Signed-off-by: Alejandro Lazaro <[email protected]>
@virtualroot virtualroot force-pushed the add-concurrency-group branch from 22a97dd to 8452b92 Compare March 4, 2024 12:21
@virtualroot virtualroot requested a review from cam72cam March 4, 2024 12:25
@virtualroot
Copy link
Contributor Author

virtualroot commented Mar 11, 2024

@cube2222 #163 was opened by you. Please have a look and merge if it's okay.

@cam72cam cam72cam merged commit 339a1ba into opentofu:main Mar 11, 2024
1 check passed
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.

"Bump Versions and Publish - Prod" should use a concurrency group.
3 participants