If the site has adequate moisture, the material should decompose in a couple of months. One drawback is if animals or rodents get into the food waste.
You may want to refer to the following Extension fact sheet on composting methods and read the section on "Pit Composting."
