My dishwasher fills and drains several times during the wash cycle

My Whirlpool dishwasher fills up, then appears to wash for a few minutes, then drains fully. Then it fills back up and repeats. This seemed to happen over and over. I ended up draining it and stopping the cycle.

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0
crwdns2934285:0crwdne2934285:0