Trigger awating job if wating so long

Hello guys, I have a list of awaiting jobs and for some reasons, 2 of them has parent Job Id mixed together, awaiting job A has parent Id is awaiting job B and awaiting job B has parent Id is awaiting job A. To resolve this, I want to trigger awaiting jobs after given duration even their parent jobs finished or not. Do you know any way to approach this? Thank you.