Skip to content

Commit

Permalink
fix(ingest/okta): fix event_loop RuntimeError with nested asyncio (da…
Browse files Browse the repository at this point in the history
  • Loading branch information
skrydal authored and maiarareinaldo committed Aug 22, 2023
1 parent cc1d460 commit 29d2ad1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion metadata-ingestion/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def get_long_description():
"mysql": sql_common | {"pymysql>=1.0.2"},
# 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 | trino | {"acryl-pyhive[hive]>=0.6.12"},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
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
Expand Down Expand Up @@ -51,6 +52,7 @@
)

logger = logging.getLogger(__name__)
nest_asyncio.apply()


class OktaConfig(StatefulIngestionConfigBase, ConfigModel):
Expand Down

0 comments on commit 29d2ad1

Please sign in to comment.