Do you have expensive electricity and can only mine at night?
I do not understand your problem, so I will give the main opinion.
The mining farm should work 24 hours a day, if you have problems with electricity, then look for other places where you can install your mining farm. If it is expensive or unprofitable, look for other opportunities to earn money.
A mining farm could actually even only run from time-to-time, just depends on the costs of running it (usually, the biggest factor being electricity).