Chronic fluid vomit / end stage lung cancer

Hi, my partner is palliative with lung cancer. He’s been sick every morning or any time he sits up after lying down and coughing but it is copious amounts of dirty brown fluid, almost like tea coloured. He filled over a 900ml ice cream tub this morning. He finds no relief afterwards either.Can anyone advise? Apologies for the graphic content.