A gas oven can run without a pilot light for as long as it takes for the gas supply to be turned off or depleted. Most modern gas ovens no longer use a continuously burning pilot light for ignition. Instead, they use an electric igniter or a spark igniter to light the gas when the oven is turned on.
If the electric igniter or spark igniter is functioning correctly, the oven will light whenever you turn it on and will continue to do so until you manually turn it off or until the cooking process is complete.
However, if there is a malfunction with the igniter, the oven will not ignite, and it will not be able to cook food. In such cases, you should address the issue promptly, either by troubleshooting and repairing the igniter or by seeking assistance from a qualified technician.
It's essential to ensure that gas appliances, including ovens, are properly maintained and serviced regularly to prevent any safety hazards and to ensure their efficient and safe operation. If you suspect any issues with your gas oven or its ignition system, it is best to contact a professional to inspect and repair it.