Git Product home page Git Product logo

Comments (7)

joowani avatar joowani commented on May 26, 2024

Hi @akki

I just took a quick look and it seems there is no HTTP REST API support for Pregel yet from ArangoDB.
So unfortunately it is not possible to add it to python-arango.
And no I am not in the slack channel but you can always email me directly at [email protected].

Best,
Joohwan

from python-arango.

akki avatar akki commented on May 26, 2024

@joowani Is it /_api/control_pregel? I am not very sure though, but maybe you can understand this.

from python-arango.

graetzer avatar graetzer commented on May 26, 2024

Hi, just a quick comment:
I did not publicily document the http API for pregel yet, but I am fairly confident that we will not change the current API until we release ArangoDB 3.3
So if you like you can go ahead and implement it. Some example REST calls:

Start a pregel job, is just a POST requiest, the response will contain the pregel job-id

POST /_api/control_pregel
{"algorithm": "pagerank", "graphName":"abc"}

Check the pregel job status

GET /_api/control_pregel/<job-id>
{
    "state" : "running",
    "gss" : 12,
    "totalRuntime" : 123.23,
    "aggregators" : {...},
    "sendCount" : 3240364978,
    "receivedCount" : 3240364975
  }

Cancel a pregel job

DELETE /_api/control_pregel/<job-id>

from python-arango.

joowani avatar joowani commented on May 26, 2024

Oh I see thanks @graetzer.
I will take a look and add it to the next release.

Best,
Joohwan

from python-arango.

joowani avatar joowani commented on May 26, 2024

Hi @akki and @graetzer,

I've added the Pregel API to python-arango in the latest release. Please check it out and feel free to reopen this issue if you see any problems.

Thanks,
Joohwan

from python-arango.

akki avatar akki commented on May 26, 2024

Thanks a lot for the efforts @joowani

from python-arango.

27shreya avatar 27shreya commented on May 26, 2024

Hi @joowani @graetzer @akki thank you for your help. But this does not return the pregel result. And also how can I set storage to false to get pregel result in memory.
https://docs.arangodb.com/3.2/Manual/Graphs/Pregel/

from python-arango.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.