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

Direct Start Workload #416

Open
wants to merge 6 commits into
base: v3
Choose a base branch
from
Open

Direct Start Workload #416

wants to merge 6 commits into from

Conversation

jordan-rash
Copy link
Contributor

No description provided.

Signed-off-by: Jordan Rash <[email protected]>
Signed-off-by: Jordan Rash <[email protected]>
node/actors/artifacts.go Outdated Show resolved Hide resolved
node/actors/direct_start_agent.go Show resolved Hide resolved
node/actors/direct_start_agent.go Outdated Show resolved Hide resolved
node/actors/process_actor.go Outdated Show resolved Hide resolved
node/actors/process_actor.go Show resolved Hide resolved
node/actors/process_actor.go Outdated Show resolved Hide resolved
Signed-off-by: Jordan Rash <[email protected]>
Signed-off-by: Jordan Rash <[email protected]>
Signed-off-by: Jordan Rash <[email protected]>
@jordan-rash jordan-rash marked this pull request as ready for review November 1, 2024 18:33
@jordan-rash jordan-rash requested a review from a team as a code owner November 1, 2024 18:33
Copy link
Contributor

@autodidaddict autodidaddict left a comment

Choose a reason for hiding this comment

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

just a few minor things

api/nodecontrol/client.go Outdated Show resolved Hide resolved
node/actors/direct_start_agent.go Outdated Show resolved Hide resolved
node/actors/os_procs.go Outdated Show resolved Hide resolved
node/actors/os_procs.go Show resolved Hide resolved
node/actors/process_actor.go Outdated Show resolved Hide resolved
node/actors/process_actor.go Outdated Show resolved Hide resolved
Signed-off-by: Jordan Rash <[email protected]>
@@ -24,24 +28,57 @@ type ArtifactReference struct {
Size int
}

func extractTag(location *url.URL) string {
return location.Fragment
Copy link
Contributor

Choose a reason for hiding this comment

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

What happened to the code that checks for a :, splits, and returns the tag and if none exists it returns "latest"?

// TODO: Implement
return nil, nil
filePath, tag := "", ""
sPath := strings.SplitN(location.Path, ":", 2) // splits on first : only
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this call extract tag?

}
}

// waits 5 seconds for workload to shutdown gracefully
Copy link
Contributor

Choose a reason for hiding this comment

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

It pains me to see a timed retry loop appear here. We should eventually figure out a better way:tm:

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.

2 participants