slave away

中級 (B1) informal

To work very, very hard for a long time on something tiring or boring.

"She slaved away in the kitchen for three hours to prepare the dinner party."