Investors & landlords

The change of employment must be while the house is your Principal Residence.

 

The way you are describing it, you don't have the job yet.  You are moving, THEN getting a job.  If that is the case, it would not qualify for the exclusion.