38 weeks 3 days

Yesterday I had diarrhea all day, now today I'm pooping every 20-30 minutes, but it's like my system is cleaned out because all that is coming out is mucus. Is this normal? Did you have this before labor?