Skip to content

arango.exceptions.AsyncJobResultError : job 1530399 not done #226

@aaqibb13

Description

@aaqibb13
  • 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 returns AsyncJobResultError 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: The wait_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:

Any pointers on how the problem can be fixed?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions