Use an indeterminate progress bar or ring to indicate that a task is running when you can't be sure when it will finish.

Bar

Ring

Ring with text