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

fix(join): use local context for join bash #309

Merged
merged 1 commit into from
Jan 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cmd/gpud/command/join.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ func cmdJoin(cliContext *cli.Context) (retErr error) {
}
return fmt.Errorf("failed to join: %v", errorResponse)
}
if err := handleJoinResponse(rootCtx, response.Body); err != nil {
cctx, ccancel := context.WithTimeout(context.Background(), 1*time.Minute)
defer ccancel()
if err := handleJoinResponse(cctx, response.Body); err != nil {
return err
}
fmt.Println("Basic setup finished, GPUd is installing necessary components onto your machine, this may take 10 - 15 minutes.\nYou can run `gpud status` or `gpud status -w` to check the progress of each component.")
Expand Down
Loading