Dish washer

dishwasher is draining as soon as it fills, so within 5 minutes it is empty.

A model number may help others help you.

Also did it used to work OK?

I believe the model is 8524569. and yes it worked.

Sorry but that does not look like a Kitchenaide model number.
Usually they start with several letters.

Model Number Locator

Sorry,

Model number is KUD101ILBS2

I think your model should be KUDL01ILBS2 not KUD101ILBS2
Info below is for the KUDL

Here are your parts
Replacement parts for WHIRLPOOL KUDL01ILBS2 Undercounter Dishwasher | AppliancePartsPros.com

Here is the tech sheet
http://www.servicematters.com/docs/wiring/Tech%20Sheet%20-%208537797.pdf

Check that the drain motor Item 17 in Section 8 is getting power when it should not.
If it is then your control board is probably shot.