give (something) up as a bad job
idiomDefinition of give (something) up as a bad job
: to stop trying to do something because it cannot be done
I tried my best to persuade him, but in the end I gave it up as a bad job.