This is a highly variable problem that can’t be answered without an expert assessing your heater and outdoor space in person. That being said, it’s often caused by one of two issues: the gas pilot getting blown out in a particularly windy area, or problems with the unit’s thermocouple.