Skip to content
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

Jobs API #246

Merged
merged 39 commits into from
Apr 19, 2021
Merged

Jobs API #246

merged 39 commits into from
Apr 19, 2021

Conversation

kellrott
Copy link
Member

@kellrott kellrott commented Feb 27, 2021

TODOs

  • Add testing for as / select in job resume
  • Add page to documentation
  • Add timestamps for jobs

The Jobs API:

To submit a job:

job = G.query().V().hasLabel("Planet").out().submit()

To get job status:

jinfo = G.getJob(job["id"])

To read job results:

for row in G.readJob(job["id"]):
   print(row)

Find jobs that match the prefix of the current request (example should find job from G.query().V().hasLabel("Planet").out())

jobs = G.query().V().hasLabel("Planet").out().out().count().searchJobs()

Extend a previous pipeline

for res in G.resume(job["id"]).out().count():
    print(res)

@kellrott kellrott requested a review from bwalsh March 25, 2021 18:54
@kellrott kellrott changed the title Jobs API [WIP] Jobs API Mar 31, 2021
@kellrott kellrott merged commit aa68ea2 into develop-0.7.0 Apr 19, 2021
@kellrott kellrott deleted the jobs-api branch May 30, 2021 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant