serial

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package serial provides utilities for serializing render operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderFunc

RenderFunc wraps a render function to serialize all render calls using the provided mutex. This prevents concurrent Docker container operations that can overwhelm the Docker daemon when processing many XRs with the same functions. The serialization ensures:

  1. Only one render operation runs at a time globally
  2. Named Docker containers (via annotations) can be reused safely between renders
  3. Container startup races are eliminated

For e2e tests, combine this with versioned named container annotations for optimal performance. For production, this works without requiring users to annotate their Function resources.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL