-
Notifications
You must be signed in to change notification settings - Fork 75
Closed
Description
- 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?
Metadata
Metadata
Assignees
Labels
No labels