If short resting happens instantly I don’t see why you shouldn’t be able to cast ritual spells without any delay, as long as you’re out of combat.