-
Notifications
You must be signed in to change notification settings - Fork 76
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
arango.exceptions.AsyncJobResultError
: job 1530399 not done
#226
Comments
@aaqibb13, we are looking into this issue and will send you some feedback soon. |
@aaqibb13, I am trying to reproduce the issue, without any luck so far. Here is the code that I am using: import time
from arango import (
ArangoClient,
AQLQueryExecuteError,
AsyncJobCancelError,
AsyncJobClearError
)
client = ArangoClient(hosts="http://localhost:8529")
sdb = client.db('<dbName>', username='<userName>', password='<password>')
adb = sdb.begin_async_execution(return_result=True)
job = adb.collection('<collection_name>').insert(
document={'name': 'James'},
return_new=True,
sync=True)
while job.status() != 'done':
time.sleep(0.5)
result = job.result() This code works fine. The value of result on the last line is: I am using the latest version of the driver (7.5.2) with ArangoDB 3.10. Can you try the above code on your side and confirm whether it works please? |
Hey @tjoubert , thanks for you response. I was using an earlier version of the driver (7.5.1). After I upgraded to the version you specified, my code worked just fine! Can you kindly confirm whether the issue actually exists with |
Hi @aaqibb13, that's very good news that your code is now working. |
Hey @tjoubert, I have a CI/CD pipeline for the project that I'm working on. I tried to reproduce the issue locally but to no avail (The same queries works just fine locally). However, when I hit the endpoint where the queries is being run, the problem arises. The logs I shared ( Is there something I'm missing? I'm curious! |
Hey @aaqibb13, This sounds like a server-side issue. Could you provide the full stacktrace of the error? Please include both the HTTP and the DB error code. Thanks. |
Closing due to inactivity. @aaqibb13 please feel free to reopen if you still have issues. |
arango.database.StandardDatabase.begin_async_execution
and even after executing simple insert queries, it returnsAsyncJobResultError
too often.The query simply looks like:
wait_for_results
function to wait for the job to finish, but it didn't help either: Thewait_for_results
looks like this:It returns:
arango.exceptions.AsyncJobResultError
: job 1530399 not doneSomeone else happen to come across the same problem a year and a half before, but looks like nothing to solve the issue:
https://stackoverflow.com/questions/66964626/why-simple-aql-execute-returns-asyncjobresulterror-when-client-requests-data
Any pointers on how the problem can be fixed?
The text was updated successfully, but these errors were encountered: