Add multiple tasks to an existing job RRS feed

  • Pertanyaan

  • Hi,

    I am facing a situation that I need to add multiple tasks to an existing job. I am using HPC command line and HPC powershell. CMD "job add" and powershell "add-hpctask" can do this, but it requires that the command will be executed multiple times. I wish just one command will be executed.

    I found "job new /jobfile:" can create a new job with multiple tasks. But what I would to do is add tasks to an existing job.

    Is there any solution to this problem? Thanks in advance!

    Senin, 25 November 2019 15.39

Semua Balasan

  • These APIs could only add one task per command. You may check if below ways would help:

    1. use parametric sweep task if the commands in the tasks are the same except a numeric parameter

    2. try C# SDK to add task (still one task per command, but should be more efficient)

    3. put multiple add task commands in one line or in a script


    Jumat, 06 Desember 2019 08.40