From the pictures you posted, that valve should not have been in use due to all the corrosion it has. You're hearing the solenoid click upon getting 24v, but the actual valve is not opening. That's the problem with a valve that corroded, they can stick. Unfortunately they can also stick in the open position and gas will flow and the heater will stay lit when it should be off, a very dangerous situation.
A service tech, upon seeing a valve in that condition, is required to disable that heater until the valve, or heater, is replaced. Because they are afraid of making a customer angry, many will try to make it work, but the liability will always fall back on them if here is a problem.
That heater is not in very good condition, but a new replacement valve in that BTU range would cost $200.00 - $275.00