change history endpoint to use task status.