locked
Add multiple tasks to an existing job RRS feed

  • Question

  • 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!

    Monday, November 25, 2019 3:39 PM

All replies

  • 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

    Chenling

    Friday, December 6, 2019 8:40 AM