locked
DependsOn tasks in case of failure RRS feed

  • Question

  • Hi,

    I am using HPC 2012 R3 version 4.5.5161.0
    I am running a job whose tasks have dependencies using the ISchedulerTask.DependsOn property.
    I have also set the ISchedulerJob.FailDependentTasks property because I do not want tasks to be run if all of their dependencies have not completed successfully.

    For example, let's say that my job is composed of 3 tasks A, B and C. B depends on A, A and C depend on nothing.
    Now if task A fails then HPC fails also B since it depends on it (as expected).
    If I requeue only task A and it runs to completion, B will not be requeued and the job will fail once task C finishes.
    If I try to requeue both B and A then I get an exception when requeuing B :

    Microsoft.Hpc.Scheduler.Properties.SchedulerException: Dependent tasks are failed due to failure of parent tasks.
       at Microsoft.Hpc.Scheduler.Store.TaskEx.SubmitTask()


    Please let me know if I am doing something wrong. What is the right way to requeue task with dependencies ?


    Tuesday, April 17, 2018 2:48 PM

All replies

  • I think you need requeue task A then requeue task B

    Qiufang Shi

    Monday, April 23, 2018 5:36 PM