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

Allow to run multiple tasks concurrently #7863

Closed
wclr opened this issue Jun 19, 2016 · 9 comments
Closed

Allow to run multiple tasks concurrently #7863

wclr opened this issue Jun 19, 2016 · 9 comments
Assignees
Labels
tasks Task system issues

Comments

@wclr
Copy link

wclr commented Jun 19, 2016

Didn't find this issue. Allow to run multiple tasks concurrently. Currently it ask s to terminate running one.

This actually for watching tasks. And also seem that tasks are run some way differently that upcoming workbench terminal as they do not keep colors inside running scripts. Terminal and task runner seem to be very relative technically.

@dbaeumer
Copy link
Member

Dups #981

@dbaeumer dbaeumer added the tasks Task system issues label Jun 20, 2016
@dbaeumer dbaeumer self-assigned this Jun 20, 2016
@wclr
Copy link
Author

wclr commented Jun 20, 2016

@dbaeumer
I've seen that issue, I thought that the question was a little bit different, it is about defining multiple tasks, a this issue is about concurrent execution, including tasks that are supposed to run "forever" like server/watching/etc.

@dbaeumer
Copy link
Member

The reason why I folded them is that if we allow running multiple tasks supporting multiple commands is almost a must. That we we plan to solve them together in one go.

@k8w
Copy link

k8w commented Jun 20, 2017

I want to use 2 tasks concurrently:

  • tsc watch
  • tslint watch

They have different problemMatchers, so can not define as one task.

@dbaeumer
Copy link
Member

@twoeo this is possible with the task 2.0.0. It can run multiple tasks in parallel.

@ceituna
Copy link

ceituna commented Oct 18, 2017

@dbaeumer I think what @k8w meant and what I'm facing is starting multiple tasks in one command. I now have two tasks that I want to start at build, but I can only choose one default task. The other one I have to start independently via the Command Palette or by choosing it through Tasks -> Run Task. If I set both tasks as default build tasks with "group": { "kind": "build", "isDefault": true }, they don't start automatically after using Ctrl+Shift+B and I have to choose one and repeat the process and choose the other.

@dbaeumer
Copy link
Member

@ceituna are your tasks watching tasks. If not you can define a new tasks that depends on the two others and mark that one as the default build task. However this is currently not possible if they are watching tasks.

@ceituna
Copy link

ceituna commented Oct 19, 2017

@dbaeumer Only one of them is (a tsc watch). I wasn't aware of the dependsOn option. Couldn't find it in the docs. I've now setup a new task which depends on the other two as the default build task and everything works as expected. Thanks for the hint!

@dbaeumer
Copy link
Member

You are welcome. Agree that this should be documented as well.

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tasks Task system issues
Projects
None yet
Development

No branches or pull requests

4 participants