MCPcopy Index your code
hub / github.com/riverqueue/river / checkOutputSize

Function checkOutputSize

recorded_output.go:74–79  ·  view source on GitHub ↗

Postgres JSONB is limited to 255MB, but it would be a bad idea to get anywhere close to that limit for output.

(outputBytes []byte)

Source from the content-addressed store, hash-verified

72// Postgres JSONB is limited to 255MB, but it would be a bad idea to get
73// anywhere close to that limit for output.
74func checkOutputSize(outputBytes []byte) error {
75 if len(outputBytes) > maxOutputSizeBytes {
76 return fmt.Errorf("output is too large: %d bytes (max %d MB)", len(outputBytes), maxOutputSizeMB)
77 }
78 return nil
79}

Callers 2

RecordOutputFunction · 0.85
jobUpdateMethod · 0.85

Calls 1

ErrorfMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…