Skip to content

Add memory limits to remaining exec paths#1247

Open
msuozzo wants to merge 1 commit intogoogle:mainfrom
msuozzo:push-zopoyuktnsxx
Open

Add memory limits to remaining exec paths#1247
msuozzo wants to merge 1 commit intogoogle:mainfrom
msuozzo:push-zopoyuktnsxx

Conversation

@msuozzo
Copy link
Copy Markdown
Member

@msuozzo msuozzo commented May 5, 2026

Most execution methods have configurable memory limits but build
executor and ctl infer were missed. This brings them to parity.

Most execution methods have configurable memory limits but build
executor and ctl infer were missed. This brings them to parity.
@msuozzo msuozzo requested a review from wbxyz May 5, 2026 21:18
@@ -85,7 +88,38 @@ func isCloudRun(u *url.URL) bool {
}

// Handler contains the business logic for the infer command.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Doc string got bumped?

Comment on lines +101 to +105
mult, s = 1<<30, s[:len(s)-1]
case 'm', 'M':
mult, s = 1<<20, s[:len(s)-1]
case 'k', 'K':
mult, s = 1<<10, s[:len(s)-1]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could these be assigned on separate lines? It's a little confusing to read the assignment interleaved this way.

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