How change the delivery task status

Hello,

Is there a way to change the delivery task status? We want to set up a schedule job to restart the failed delivery tasks.But sometime we may want to igore some ones, to do so we want to update the status to ‘Done’. Thanks.