Yeah, the 悩む refers to how this person was to handle the instructions from the boss. One should normally do what your boss tells you, but this person was possibly in doubt of whether to do them or not, but after nayamuing a bit, he decided to not do them.