Hello HPC forum
Another newbie question :- why do tasks run if their dependencies have failed? e.g.
job new /numnodes:1
@rem "A" is going to fail.
job add <id> /name:"A" cmd.exe /c exit /b 1
@rem "B" depends "A", should it run?
job add <id> /name:"B" /depend:"A" cmd.exe /c date /t
job submit /id:<id>
My naïve expectation would be that the dependency has failed for Task “B” and so it shouldn’t be run. I would expect if the user wanted run "B" irrespective of the failure of "A", then they don't express a dependency. But it seems to
run quite happily. Is there another option to say only run this step if the one(s) it depends on succeeded without connecting back to the scheduler?
Thanks