Tightly couple stageIdToJobIds and jobIdToStageIds