locked
Command line equivalent of "SubmitTask"? RRS feed

  • Question

  • I am setting up a Job that has one task A.  That task A needs to create additional tasks that are part of the same job with some dependencies.  I am using the dos CLI.  Task A currently makes calls to "job add" to add additional tasks to the same job. Some of these added tasks depend on the others to finish.  Unfortunately, it looks like the dependencies that I specified did not get applied.  Here is a high level of what I am trying to do:

    job new

    job add X /name:A ...

    job submit /id:X

     

    Then task A, when running, dynamically is attempting to add more tasks to the same job:

    job add X /name:One ....

    job add X /name:Two /depend:One

     

    If I change task A to create a new Job (rather than trying to use the same job), and submit it, the dependencies work.  I would really like these to all stay within the same Job since they are really the same job, that we want to keep adding to if we assess we are not complete.

    Looking at the API documentation, and the following link, it looks like I may be needing to do a SubmitTask rather than an Add task since the job is currently running:

    http://social.microsoft.com/Forums/is/windowshpcdevs/thread/dc38b7cc-9716-4b0c-b476-da1ae28f2565

    From looking around, I couldn't find an equivalent of SubmitTask from the CLI.  Am I doing something wrong?  Or is there some kind of "task submit" or "job submit task " command in the CLI?

     

    Thanks!

    Sunday, January 1, 2012 7:52 PM

All replies

  • After fiddling around with this, I think my problem is that my dependencies were not setup correctly.  In addition, I added another submit after the subsequent adds.  Neverthess, it is possible and I did get it to work.

    It is a little abstracted, since I am dealing with scripts that are generating these commands.

    Friday, January 6, 2012 1:39 AM