Item termination

Can you please check the rake task and advice, thanks.