Set state expired automatic task