udf register must be a Task