Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: timeout issues in gremlinpython==3.4.9 #17

Merged
merged 2 commits into from
Jul 16, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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