generated from opensafely/research-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Rename concurrency group #27
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
Merged
Merged
Conversation
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
Giving the concurrency group the same name as a job is confusing, especially when the concurrency group applies to the workflow. Thanks for pointing this out, @alarthast. Naming things is hard, so we rename the concurrency group by adding the suffix "-group".
This was referenced Mar 5, 2025
iaindillingham
added a commit
to opensafely-actions/cohort-joiner
that referenced
this pull request
Mar 5, 2025
If two commits are merged to `main`, each will trigger a separate run of the CI workflow. If, for some reason, the later commit's run completes first, then the later commit will be tagged with the next version number. The earlier commit, whose run completes second, will also be tagged with the next version number, but the earlier commit's version number will be greater than the later commit's version number, which is very confusing. This is known as a _race condition_. To prevent it, we should ensure that runs are executed in sequence. To do so, we should set [the workflow's `concurrency` property][1]. See: * opensafely-actions/kaplan-meier-function#25 * opensafely-actions/kaplan-meier-function#27 [1]: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
iaindillingham
added a commit
to opensafely-actions/cohort-report
that referenced
this pull request
Mar 5, 2025
If two commits are merged to `main`, each will trigger a separate run of the CI workflow. If, for some reason, the later commit's run completes first, then the later commit will be tagged with the next version number. The earlier commit, whose run completes second, will also be tagged with the next version number, but the earlier commit's version number will be greater than the later commit's version number, which is very confusing. This is known as a _race condition_. To prevent it, we should ensure that runs are executed in sequence. To do so, we should set [the workflow's `concurrency` property][1]. See: * opensafely-actions/kaplan-meier-function#25 * opensafely-actions/kaplan-meier-function#27 [1]: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
iaindillingham
added a commit
to opensafely-actions/dataset-report
that referenced
this pull request
Mar 5, 2025
If two commits are merged to `main`, each will trigger a separate run of the CI workflow. If, for some reason, the later commit's run completes first, then the later commit will be tagged with the next version number. The earlier commit, whose run completes second, will also be tagged with the next version number, but the earlier commit's version number will be greater than the later commit's version number, which is very confusing. This is known as a _race condition_. To prevent it, we should ensure that runs are executed in sequence. To do so, we should set [the workflow's `concurrency` property][1]. See: * opensafely-actions/kaplan-meier-function#25 * opensafely-actions/kaplan-meier-function#27 [1]: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
iaindillingham
added a commit
to opensafely-actions/project-dag
that referenced
this pull request
Mar 6, 2025
If two commits are merged to `main`, each will trigger a separate run of the CI workflow. If, for some reason, the later commit's run completes first, then the later commit will be tagged with the next version number. The earlier commit, whose run completes second, will also be tagged with the next version number, but the earlier commit's version number will be greater than the later commit's version number, which is very confusing. This is known as a _race condition_. To prevent it, we should ensure that runs are executed in sequence. To do so, we should set [the workflow's `concurrency` property][1]. See: * opensafely-actions/kaplan-meier-function#25 * opensafely-actions/kaplan-meier-function#27 [1]: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
iaindillingham
added a commit
to opensafely-actions/demographic-standardisation
that referenced
this pull request
Mar 6, 2025
If two commits are merged to `main`, each will trigger a separate run of the CI workflow. If, for some reason, the later commit's run completes first, then the later commit will be tagged with the next version number. The earlier commit, whose run completes second, will also be tagged with the next version number, but the earlier commit's version number will be greater than the later commit's version number, which is very confusing. This is known as a _race condition_. To prevent it, we should ensure that runs are executed in sequence. To do so, we should set [the workflow's `concurrency` property][1]. See: * opensafely-actions/kaplan-meier-function#25 * opensafely-actions/kaplan-meier-function#27 [1]: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
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.
Giving the concurrency group the same name as a job is confusing, especially when the concurrency group applies to the workflow. Thanks for pointing this out, @alarthast. Naming things is hard, so we rename the concurrency group by adding the suffix "-group".
Also, a correction: in 7bbff4e I said that GitHub doesn't queue runs. I was mistaken: a workflow concurrency group can have a queue of one. In other words, two instances of a workflow in the same concurrency group are permitted: the first is running and the second is pending. The docs are not as clear as they could be, because "running" has both a specific meaning (the running state) and a general meaning (the running state and the pending state could both be described as running). In addition, the docs for workflow concurrency (
concurrency) also describe job concurrency (jobs.<job_id>.concurrency).