mirror of
https://github.com/datahub-project/datahub.git
synced 2025-12-04 06:33:05 +00:00
fix(ingest/okta): fix event_loop RuntimeError with nested asyncio (#8637)
This commit is contained in:
parent
526e626146
commit
baae3d261d
@ -358,7 +358,7 @@ plugins: Dict[str, Set[str]] = {
|
||||
"mysql": mysql,
|
||||
# mariadb should have same dependency as mysql
|
||||
"mariadb": sql_common | {"pymysql>=1.0.2"},
|
||||
"okta": {"okta~=1.7.0"},
|
||||
"okta": {"okta~=1.7.0", "nest-asyncio"},
|
||||
"oracle": sql_common | {"cx_Oracle"},
|
||||
"postgres": sql_common | {"psycopg2-binary", "GeoAlchemy2"},
|
||||
"presto": sql_common | pyhive_common | trino,
|
||||
|
||||
@ -7,6 +7,7 @@ from dataclasses import dataclass, field
|
||||
from time import sleep
|
||||
from typing import Dict, Iterable, List, Optional, Union
|
||||
|
||||
import nest_asyncio
|
||||
from okta.client import Client as OktaClient
|
||||
from okta.exceptions import OktaAPIException
|
||||
from okta.models import Group, GroupProfile, User, UserProfile, UserStatus
|
||||
@ -51,6 +52,7 @@ from datahub.metadata.schema_classes import (
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
nest_asyncio.apply()
|
||||
|
||||
|
||||
class OktaConfig(StatefulIngestionConfigBase, ConfigModel):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user