A Consular Officer can lengthen the validity of the petition if it expires before visa processing is accomplished. The application process explained under won't be available to the foreign-citizen spouse and can't be used. You can stay and work in Germany even in case you are not an EU citizen,