mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-18 05:33:03 +00:00
fix(sdk): remove rest emitter to graph cache in CorpGroup (#7743)
This commit is contained in:
parent
f860ce95c0
commit
23e57fffa2
@ -2,7 +2,6 @@ from __future__ import annotations
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
from dataclasses import dataclass
|
from dataclasses import dataclass
|
||||||
from functools import lru_cache
|
|
||||||
from typing import TYPE_CHECKING, Callable, Iterable, List, Optional, Union
|
from typing import TYPE_CHECKING, Callable, Iterable, List, Optional, Union
|
||||||
|
|
||||||
import pydantic
|
import pydantic
|
||||||
@ -192,9 +191,9 @@ class CorpGroup(BaseModel):
|
|||||||
entityUrn=urn, aspect=StatusClass(removed=False)
|
entityUrn=urn, aspect=StatusClass(removed=False)
|
||||||
)
|
)
|
||||||
|
|
||||||
@lru_cache(maxsize=32)
|
@staticmethod
|
||||||
def _datahub_graph_from_datahub_rest_emitter(
|
def _datahub_graph_from_datahub_rest_emitter(
|
||||||
self, rest_emitter: DatahubRestEmitter
|
rest_emitter: DatahubRestEmitter,
|
||||||
) -> DataHubGraph:
|
) -> DataHubGraph:
|
||||||
"""
|
"""
|
||||||
Create a datahub graph instance from a REST Emitter.
|
Create a datahub graph instance from a REST Emitter.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user