Sell house two years exception

If we sell our primary residence in less than two years living in it, and if my spouse get a job at where we will move to, can we get partial exclusion even if my spouse has never had any job previously?  Also, can the job be 1099 or does it have to be W-2? And does the job require a minimum earning amount?  Thank you.