Redundant discovery processes created by additional daemon instances #1981
Labels
status: waiting for information
More information must be provided before work can proceed
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Milestone
Describe the problem
Pluggable discovery tools supply Arduino CLI with a list of "ports" of connected Arduino boards. When Arduino CLI is running as a daemon, these tools are started when a gRPC request is received that requires a port listing and then left running for the remainder of the session.
🐛 Redundant processes for each discovery tool are created by additional instances of the Arduino CLI daemon. It is possible that discovery tools may not be designed to operate correctly in this way, and the multiple processes might interfere with each other.
To reproduce
Setup
Demo
run the following
grpcurl
commands in another terminal:🐛 A new process is created for each discovery tool by additional Arduino CLI daemon instances.
Expected behavior
A single instance of each discovery tool should be shared by all Arduino CLI daemon instances.
Arduino CLI version
76251df
Operating system
Windows, Ubuntu
Operating system version
Windows 10, Ubuntu 20.04
Additional context
Related: #1960
Issue checklist
The text was updated successfully, but these errors were encountered: