Skip to content

Allow to run multiple tasks concurrently #7863

Closed

Description

@wclr

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.

Activity

  1. dbaeumer commented on Jun 20, 2016

    @dbaeumer
    Member

    Dups #981

  2. wclr commented on Jun 20, 2016

    @wclr
    Author

    Dirk Bäumer (@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.

  3. dbaeumer commented on Jun 21, 2016

    @dbaeumer
    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.

  4. k8w commented on Jun 20, 2017

    @k8w

    I want to use 2 tasks concurrently:

    • tsc watch
    • tslint watch

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

  5. dbaeumer commented on Jun 20, 2017

    @dbaeumer
    Member

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

  6. ceituna commented on Oct 18, 2017

    @ceituna

    Dirk Bäumer (@dbaeumer) I think what Zhongyang Wang (@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.

  7. dbaeumer commented on Oct 19, 2017

    @dbaeumer
    Member

    Ceituna (@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.

  8. ceituna commented on Oct 19, 2017

    @ceituna

    Dirk Bäumer (@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!

  9. dbaeumer commented on Oct 20, 2017

    @dbaeumer
    Member

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

  10. locked and limited conversation to collaborators on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

tasks

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions