It really depends on your demeanor, and what the ultimately pointless task was. I really can't answer that even just for myself when the thing I thought I needed to do could be anything at all. Succeeding at a task can be its own reward, even when it turns out you never needed to start.