Skip to content

Test: runOptions.instancePolicy for tasks #249113

@meganrogge

Description

@meganrogge

Refs #90125

Complexity: 3

Create Issue


Set instanceLimit for a task without dependencies (issue tracking that not working for compound tasks #248733). Set instancePolicy and ensure the descriptions of those values make sense and work as expected.

Example:

	{
			"label": "Run tests",
			"type": "shell",
			"command": "./scripts/test.sh",
			"windows": {
				"command": ".\\scripts\\test.bat"
			},
			"group": "test",
			"presentation": {
				"echo": true,
				"reveal": "always"
			},
			"runOptions": {
				"instanceLimit": 2,
				"instancePolicy": "prompt"
			}
		},

Note when verifying: after changing the instancePolicy, one must kill all instances of that task for it to take effect - that's by design as it's reusing the instancePolicy that was set for the prior task terminals.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions