Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate env snapshot command to Runner client abstraction? #542

Open
sourishkrout opened this issue Mar 27, 2024 · 0 comments
Open

Migrate env snapshot command to Runner client abstraction? #542

sourishkrout opened this issue Mar 27, 2024 · 0 comments
Labels
owl Project 🦉 Owl

Comments

@sourishkrout
Copy link
Member

To avoid duplication and reuse the same config init logic.

credentials := credentials.NewTLS(tlsConfig)
conn, err := grpc.Dial(addr, grpc.WithTransportCredentials(credentials))
if err != nil {
return errors.Wrap(err, "failed to connect")
}
defer conn.Close()
client := runnerv1.NewRunnerServiceClient(conn)
meClient, err := client.MonitorEnvStore(context.Background(), &runnerv1.MonitorEnvStoreRequest{
Session: &runnerv1.Session{Id: sessionID},
})

@sourishkrout sourishkrout added the owl Project 🦉 Owl label Mar 27, 2024
@sourishkrout sourishkrout changed the title Migrate env snapshot command to Runner client abstraction Migrate env snapshot command to Runner client abstraction? Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
owl Project 🦉 Owl
Projects
None yet
Development

No branches or pull requests

1 participant