MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / SetImportBundleMaxBytes

Method SetImportBundleMaxBytes

internal/server/server.go:783–785  ·  view source on GitHub ↗

SetImportBundleMaxBytes overrides the default 2 GiB cap on a single workspace import bundle. Set to 0 to fall back to the default. Wired from PAD_IMPORT_BUNDLE_MAX_BYTES in cmd/pad/main.go so operators with workspaces over 2 GiB can opt in without recompiling. Larger caps trade memory headroom (one

(n int64)

Source from the content-addressed store, hash-verified

781// recompiling. Larger caps trade memory headroom (one blob in
782// flight at a time, ≤25 MiB) for a longer import wall-clock.
783func (s *Server) SetImportBundleMaxBytes(n int64) {
784 s.importBundleMaxBytes = n
785}
786
787// SetImportArtifactMaxBytes overrides the default 1 MiB cap on a single
788// playbook/convention artifact import. Set to 0 to fall back to the

Callers 1

serveCmdFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected