As a rule of thumb, you can leave paint in an airless sprayer for up to 5 hours (assuming it's not a time-sensitive paint and the weather isn't too hot).
Paint will only dry when subjected to air, so leave the system airtight, submerge the spray gun in a bucket of water and either keep the suction hose in the paint or in a bucket of water.