If they stay longer than 6 months the RPs will be automatically cancelled.

Upon reaching close to the 4th-5th month you should go to immigration authorities and ask for an extension of the "outside Qatar" stay (provided your case is solid and you pay the fees) to avoid any cancellation.

Regards!!

PS: do a search since this topic has had several (I would say too many) discussions in QL.