8000 Pregel is deprecated starting from 3.12 by apetenchea · Pull Request #325 · arangodb/python-arango · GitHub
[go: up one dir, main page]

Skip to content

Pregel is deprecated starting from 3.12 #325

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 6, 2024
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
Pregel is deprecated starting from 3.12
  • Loading branch information
apetenchea committed Feb 5, 2024
8000
commit 0e4d786ef79ce44db0b47be886b945e22cf04dd7
4 changes: 4 additions & 0 deletions docs/pregel.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
Pregel
------

.. warning::
Starting from ArangoDB 3.12, the Pregel API has been dropped.
Currently, the driver still supports it for the 3.10 and 3.11 versions, but note that it will be dropped eventually.

Python-arango provides support for **Pregel**, ArangoDB module for distributed
iterative graph processing. For more information, refer to `ArangoDB manual`_.

Expand Down
8 changes: 7 additions & 1 deletion tests/test_pregel.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,20 @@
from tests.helpers import assert_raises, generate_string


def test_pregel_attributes(db, username):
def test_pregel_attributes(db, db_version, username):
if db_version >= version.parse("3.12.0"):
pytest.skip("Pregel is not tested in 3.12.0+")

assert db.pregel.context in ["default", "async", "batch", "transaction"]
assert db.pregel.username == username
assert db.pregel.db_name == db.name
assert repr(db.pregel) == f"<Pregel in {db.name}>"


def test_pregel_management(db, db_version, graph, cluster):
if db_version >= version.parse("3.12.0"):
pytest.skip("Pregel is not tested in 3.12.0+")

if cluster:
pytest.skip("Not tested in a cluster setup")

Expand Down
0