Of course if it's affecting your health,by all means leave as soon as you can. However, we cannot leave everytime we hit a roadblock, sometimes things change for the better, sometimes we grow out of it, there could be organizational changes and so many other factors that may change our outlook on the workplace.