Skip to content

Conversation

@quoctruong
Copy link
Collaborator

@quoctruong quoctruong commented Jun 4, 2025

Most of the logic is in packages/k8s/src/hooks/run-script-step.ts file.

This does not include the ability to not run a script if it has the id yet. It also does not include the code to set up the container with the server.

I will also add some tests in a separate PR.

Also update typescript to 5.0.3 to resolve some issues when running tests.

@quoctruong quoctruong force-pushed the quoct/add_grpc_client branch from 9252413 to 3f8380d Compare June 4, 2025 20:26
@quoctruong quoctruong changed the title Add GRPC Client to the K8s package Add a GRPC Client to invoke the GRPC server to the K8s package Jun 4, 2025
@quoctruong quoctruong requested a review from MichaelHudgins June 4, 2025 21:25
@quoctruong quoctruong marked this pull request as ready for review June 4, 2025 21:25
Copy link

@MichaelHudgins MichaelHudgins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving but please check the one comment on if we need a retry in that section of code (if so adding a todo for now would be fine)

Comment on lines +112 to +114
if (status?.phase === 'Succeeded') {
throw new Error(`Failed to get pod ${podName} status`)
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Without looking too far into the backing code, do we need some backoff / retry here if the pod is still launching or should it already be in a good state given checks that would have already run?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So when this step (run-script-step) is called, the pod is already ready. That was in a separate step done prior to this.

@quoctruong
Copy link
Collaborator Author

Thanks!

@quoctruong quoctruong merged commit 3e7130e into google-main Jun 5, 2025
2 checks passed
@quoctruong quoctruong deleted the quoct/add_grpc_client branch June 6, 2025 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants