add complete_failed_task