For employment-based immigration, how long should I maintain my student status?

For employment-based immigration, how long should I maintain my student status?