`arango.exceptions.AsyncJobResultError` : job 1530399 not done
See original GitHub issue- I’m executing AQL queries by creating the AsyncDatabase instance of database from
arango.database.StandardDatabase.begin_async_execution
and even after executing simple insert queries, it returnsAsyncJobResultError
too often. The query simply looks like:
# db is the AsyncDatabase instance of the database
result = db.insert_document(
collection="test",
document=doc_in_db,
return_new=return_new,
sync=sync
)
result = wait_for_results(result)
return result
- I used the
wait_for_results
function to wait for the job to finish, but it didn’t help either: Thewait_for_results
looks like this:
def wait_for_results(job):
while job.status() != 'done':
time.sleep(0.5)
time.sleep(0.5)
return job.result()
It returns:
-
arango.exceptions.AsyncJobResultError
: job 1530399 not done -
Someone 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?
Issue Analytics
- State:
- Created a year ago
- Comments:6
Top Results From Across the Web
Error Handling — python-arango documentation
arango.exceptions.ArangoClientError exceptions originate from python-arango client itself. They do not contain error codes nor HTTP request response details ...
Read more >Why simple aql execute returns AsyncJobResultError when ...
Simple aql execute queries return this error too often. arango.exceptions.AsyncJobResultError: [HTTP 204] job 4739915 not done.
Read more >ArangoDB-Community python-arango Analysis & Statistics
ArangoDB -Community python-arango code and community statistics, issues, and more. ... AsyncJobResultError` : job 1530399 not done 6 open 🗓️ 1 month ago....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@aaqibb13, I am trying to reproduce the issue, without any luck so far. Here is the code that I am using:
This code works fine. The value of result on the last line is:
{'_id': 'persons/390575', '_key': '390575', '_rev': '_fA5Mlxq---', 'new': {'_key': '390575', '_id': 'persons/390575', '_rev': '_fA5Mlxq---', 'name': 'James'}}
The name of my collection ispersons
.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? Also, confirm the version of the driver and ArangoDB server that you are using.
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.