Fix complete_task in assign_ip_pool