Skip to content

Fix for not auto-starting same-named tasks in different folders#168742

Merged
meganrogge merged 5 commits intomicrosoft:mainfrom
markw65:fix-tasks-with-same-label
Dec 13, 2022
Merged

Fix for not auto-starting same-named tasks in different folders#168742
meganrogge merged 5 commits intomicrosoft:mainfrom
markw65:fix-tasks-with-same-label

Conversation

@markw65
Copy link
Contributor

@markw65 markw65 commented Dec 10, 2022

Fixes #168741

The recently added AbstractTaskService._inProgressTasks used the task label to prevent multiple copies of the same task running at the same time. But tasks in different folders can have the same label, and there's no reason not to run them at the same time.

There's an example in #168741 that demonstrates the problem without this commit. The example works in 1.73 and earlier, and also works with this pull request.

@markw65
Copy link
Contributor Author

markw65 commented Dec 10, 2022

@microsoft-github-policy-service agree

Copy link
Collaborator

@meganrogge meganrogge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for looking into this - commented a suggestion

meganrogge
meganrogge previously approved these changes Dec 13, 2022
@markw65
Copy link
Contributor Author

markw65 commented Dec 13, 2022

Just wanted to check what happens next? Will this get merged automatically now, or do I still need to do something?

@meganrogge meganrogge requested a review from Tyriar December 13, 2022 16:23
@meganrogge
Copy link
Collaborator

@markw65 it will get reviewed by another person before getting merged. nothing left for you to do

@meganrogge meganrogge added this to the January 2023 milestone Dec 13, 2022
@meganrogge meganrogge removed the request for review from Tyriar December 13, 2022 16:26
@meganrogge meganrogge enabled auto-merge (squash) December 13, 2022 16:28
@meganrogge meganrogge merged commit 3f25132 into microsoft:main Dec 13, 2022
mustard-mh pushed a commit to gitpod-io/openvscode-server that referenced this pull request Dec 14, 2022
…osoft#168742)

* Fix for not auto-starting same-named tasks in different folders

* Use getQualifiedLabel

* clean up

Co-authored-by: markw65 <[email protected]>
Co-authored-by: Megan Rogge <[email protected]>
@github-actions github-actions bot locked and limited conversation to collaborators Jan 27, 2023
@markw65 markw65 deleted the fix-tasks-with-same-label branch May 10, 2023 21:39
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tasks with the same label from different folders can't run at the same time

3 participants