The musical components of this are basically mini solo's/fills but have to fit the rest of your playing.
I was listening to a simple "feel-good" disco song and the bass line got my attention.
The 2-measure rhythmic pattern has a "mini run" already woven in that pattern.
Yes, it's a simple "run" but at that tempo it requires some skills.
And here is an extracted and EQ-ed bass-line along with the drums/metronome.
It's a good exercise for me to play each repetitive pattern correctly for 4 minutes without hesitation.