Ensure that task intervals can't overlap.