Another classic from Warren Buffett. Holds true for the job I do. Worth the pain only if there's good gain in experience and/or money.
Alternatively, helps to look at the job the other way around. Instead of "I like the job, but is it worth it?" to "Is it worth it? If yes, then I like the job"