My condolences.
It should remain active for 60 or 90 days in my experience, buy the house must nut be unoccupied for more than 28/30 days, i.e. you must visit/check on it. When my mother in law passed away the policy continued long enough to get probate and sell the property
Her policy may vary though so best to speak to the insurers asap.