Skip to content

Allow thread in grpc _InferStream be daemon#867

Open
pavelkochnev wants to merge 2 commits intotriton-inference-server:mainfrom
pavelkochnev:pavelkochnev/allow_daemonic_grpc_infer_handler_thread
Open

Allow thread in grpc _InferStream be daemon#867
pavelkochnev wants to merge 2 commits intotriton-inference-server:mainfrom
pavelkochnev:pavelkochnev/allow_daemonic_grpc_infer_handler_thread

Conversation

@pavelkochnev
Copy link
Copy Markdown

In some cases user can call tritonclient.grpc.InferenceServerClient.start_stream() but forget to call tritonclient.grpc.InferenceServerClient.stop_stream() later. start_stream created _InferStream object which internal also creates threading.Thread() instance. Because thread is not daemonic, the main process never stoped, if stop_stream() never called.
This PR allow user make internal thread daemonic, so main process can exit even if stop_stream() never called.

@pavelkochnev
Copy link
Copy Markdown
Author

@matthewkotila Could you review this PR, pls?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant