chase your (own) tail

US /tʃeɪs jʊər oʊn teɪl/
UK /tʃeɪs jʊər oʊn teɪl/
"chase your (own) tail" picture
1.

to spend a lot of time and effort doing something that achieves nothing

:
We've been chasing our tails all day trying to fix this bug, but we're no closer to a solution.
If you keep chasing your tail with minor issues, you'll never get the main project done.