If you have NOC from your previous employer, you can come back anytime.
If no NOC, You can come back anytime after completing 2 years outside Doha from the date of cancellation of visa.