StartProcess starts a gRPC backend process and returns its process handle. This is the public wrapper for the internal startProcess method, used by the serve-backend CLI subcommand to start a backend on a specified address.
(grpcProcess, id string, serverAddress string, args ...string)
| 130 | // This is the public wrapper for the internal startProcess method, used by |
| 131 | // the serve-backend CLI subcommand to start a backend on a specified address. |
| 132 | func (ml *ModelLoader) StartProcess(grpcProcess, id string, serverAddress string, args ...string) (*process.Process, error) { |
| 133 | return ml.startProcess(grpcProcess, id, serverAddress, args...) |
| 134 | } |
| 135 | |
| 136 | func (ml *ModelLoader) startProcess(grpcProcess, id string, serverAddress string, args ...string) (*process.Process, error) { |
| 137 | // Make sure the process is executable |
no test coverage detected