This rather reminds me (very inexactly) of Behavioural Activation Therapy [https://en.wikipedia.org/wiki/Behavioral_activation] although in that case the task intended isn't necessarily inherently disagreeable, simply overwhelming to a person with depression.