Skip to content

Is there any way to check if client has finished batch insertion? #309

@zcattacz

Description

@zcattacz

I am using the latest lib from pypi. The client is doing batch insertion as suggested in the document in a separate background thread in my code. Every time the job queue is cleared, the main thread exit, the script always drop a few errors like this

'''
ThreadPoolExexutor-0_0[write_api]: The batch item wasn't processed successfully because cannot schedule new futures after interpreter shutdown.
'''
I assume the insertion has not actually finished yet, The documentation doesn't seem to have covered this, I would like to ask if there is any way to check if the batch insertion has actually finished, so that the main thread could wait for it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedwontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions