locked
Canceled and failed tasks RRS feed

  • Question

  • Currently when you run a group of tasks, when one task fails all the other running tasks get canceled. The failed and canceled tasks end up in "Failed" state but is there a way to find which task did fail and which ones were canceled? I could look at the error message but it doesn't seem the best way to find this information.


    Erik Putrycz - Solution Architect - Apption Software
    Thursday, December 9, 2010 1:41 PM

Answers

  • I think you can sort the "End Time" column in the task list view, the earliest one should be the one that failed I suppose.

    Of course, you can do the filtering through our powershell interface as below:

    -------------------------------------------------

    $tasks = get-hpctask -jobId 13

    foreach($t in $tasks){ if ($t.ErrorMessage.StartsWith("Task failed")) {$t.ID}}

    ---------------------------------------------------------------------------------------

    Obove command will show you the failed task number in job 13


    Qiufang Shi
    Wednesday, December 22, 2010 7:00 AM