You can remember the meaning of 任务 with this easy mnemonic:
I'm going on a mission, my boss assigned (任) some pretty serious business (务) to me.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.