add failed_tasks template