Normally, the inverter NEVER switches off. The loads continue to be supplied even if the generator fails.
Of course, if the batteries are so discharged that the capacity is insufficient for the load… that’s it.
You can also use the generator to support the battery… if there are larger loads.