Fix for regression that recipe-task can not be cancelled by CLI

bug: 1124756
Change-Id: Ic1f46e75137e2c81c76f26553f2e42174ef39024