Skip to content

Add per-lambda reuse-sandbox flag for fresh sandboxes#405

Merged
tylerharter merged 7 commits intoopen-lambda:mainfrom
anhdduong:my-openlambda-work
Mar 22, 2026
Merged

Add per-lambda reuse-sandbox flag for fresh sandboxes#405
tylerharter merged 7 commits intoopen-lambda:mainfrom
anhdduong:my-openlambda-work

Conversation

@anhdduong
Copy link
Contributor

Add a per-lambda configuration option, reuse-sandbox, in ol.yaml to control sandbox reuse behavior.

Changes

  • Added reuse-sandbox configuration variable and logic to lambdaConfig.go
  • Added fresh-sandbox behavior in lambdaInstance.go
  • Updated documentation to describe the new configuration option in getting-started.md

Copy link
Member

@tylerharter tylerharter left a comment

Choose a reason for hiding this comment

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

Great work!

Environment map[string]string `yaml:"environment"` // Environment variables for the lambda
Triggers Triggers `yaml:"triggers"` // List of HTTP triggers
Environment map[string]string `yaml:"environment"` // Environment variables for the lambda
ReuseSandbox bool `yaml:"reuse-sandbox"` // controls whether a sandbox is reused across
Copy link
Member

Choose a reason for hiding this comment

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

If you need a multiline comment, it should be before the attribute. But this is short enough I think a one liner is fine

@tylerharter tylerharter merged commit a388417 into open-lambda:main Mar 22, 2026
1 check passed
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