Skip to content

Commit f3338c5

Browse files
committed
fix: Fix Event loop is closed error on dynamodb test
Signed-off-by: ntkathole <nikhilkathole2683@gmail.com>
1 parent 8cde460 commit f3338c5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

sdk/python/feast/infra/online_stores/dynamodb.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,9 +645,12 @@ async def _get_aiodynamodb_client(
645645

646646

647647
async def _aiodynamodb_close():
648-
global _aioboto_client
648+
global _aioboto_client, _aioboto_session
649649
if _aioboto_client:
650650
await _aioboto_client.close()
651+
_aioboto_client = None
652+
if _aioboto_session:
653+
_aioboto_session = None
651654

652655

653656
def _initialize_dynamodb_client(

0 commit comments

Comments
 (0)