Mark dependencies in both parent and child task