Skip to content

Commit

Permalink
fix: timeout issues in gremlinpython==3.4.9 (#17)
Browse files Browse the repository at this point in the history
* Fix timeout issues in tornado

Signed-off-by: Rajat Jaiswal <rajat.jaiswal@hotstar.com>

* Bump the version

Signed-off-by: Rajat Jaiswal <rajat.jaiswal@hotstar.com>
  • Loading branch information
Rajat Jaiswal authored Jul 16, 2021
1 parent aa5c676 commit 4d8e77c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion amundsen_gremlin/neptune_bulk_loader/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from gremlin_python.driver.driver_remote_connection import (
DriverRemoteConnection
)
from gremlin_python.driver.tornado.transport import TornadoTransport
from gremlin_python.process.anonymous_traversal import traversal
from gremlin_python.process.graph_traversal import GraphTraversalSource
from neptune_python_utils.endpoints import Endpoints, RequestParameters
Expand Down Expand Up @@ -87,7 +88,7 @@ def create_graph_traversal_source(**kwargs: Any) -> GraphTraversalSource:
prepared_request = override_prepared_request_parameters(
endpoints.gremlin_endpoint().prepare_request(), override_uri=override_uri)
kwargs['traversal_source'] = 'g'
remote_connection = DriverRemoteConnection(url=prepared_request, **kwargs)
remote_connection = DriverRemoteConnection(url=prepared_request, transport_factory=lambda: TornadoTransport(read_timeout=None, write_timeout=None), **kwargs)
return traversal().withRemote(remote_connection)
return create_graph_traversal_source

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

setup(
name='amundsen-gremlin',
version='0.0.9',
version='0.0.10',
description='Gremlin code library for Amundsen',
url='https://github.com/amundsen-io/amundsengremlin',
maintainer='Amundsen TSC',
Expand Down

0 comments on commit 4d8e77c

Please # to comment.