RemoveStageBarrier: kill running tasks when resubmit failed stages
RemoveStageBarrier: refine temp test code