you can also say надрываться (metaphorically, for lit. it means 'break oneself'). Usually about manual work, but can be used figuratively about any work; it means to do something which later proves to be useless, unnecessary efforts, usually implies hard efforts due to the physical character of the metaphor.