Skip to content

Duplicate Dependencies in dependsOn Only Execute Once #271190

@andreriesco

Description

@andreriesco

Hello,

I have a particular task that has the same wait-a-bit task listed twice in its dependsOn. However, wait-a-bit is only being executed once. Is there a way to make it run twice, as specified in dependsOn?

        {
            "label": "deploy-torizon-arm64",
            "detail": "",
            "hide": true,
            "command": "ssh",
            "type": "shell",
            "args": [
                "-o",
                "UserKnownHostsFile=/dev/null",
                "-o",
                "StrictHostKeyChecking=no",
                "-p",
                "${config:torizon_debug_ssh_port}",
                "${config:torizon_run_as}@${config:torizon_ip}",
                "cT=0; while ! grep -r \": wait_for_client()\" ${config:torizon_app_root}/src/log/debugpy.server*.log 2> /dev/null; do sleep 0.1; if [ \"$cT\" -eq 100 ]; then echo \"Problem debugging main.py file\"; break; fi; cT=$(expr $cT + 1); done"
            ],
            "dependsOn": [
                "validate-settings",
                "validate-arch-arm64",
                "copy-docker-compose",
                "pre-cleanup",
                "wait-a-bit",
                "build-container-torizon-debug-arm64",
                "push-container-torizon-debug-arm64",
                "pull-container-torizon-debug",
                "run-container-torizon-debug",
                "wait-a-bit",
                "stop-torizon-debug-generic",
                "rsync-torizon-generic",
                "start-torizon-debug-arm64"
            ],
            "dependsOrder": "sequence",
            "icon": {
                "id": "debug-alt",
                "color": "terminal.ansiYellow"
            },
            "presentation": {
                "echo": true,
                "reveal": "always",
                "focus": true,
                "panel": "shared",
                "group": "build-execution"
            }
        },

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions