Skip to content

Add a counter function example to verify the reuse-sandbox flag behavior#432

Open
anhdduong wants to merge 8 commits intoopen-lambda:mainfrom
anhdduong:my-openlambda-work
Open

Add a counter function example to verify the reuse-sandbox flag behavior#432
anhdduong wants to merge 8 commits intoopen-lambda:mainfrom
anhdduong:my-openlambda-work

Conversation

@anhdduong
Copy link
Copy Markdown
Contributor

Adds a counter example function and an integration test to verify that reuse-sandbox: false creates a fresh sandbox on each invocation.

Changes:

  • examples/counter/f.py: global counter that increments each call
  • examples/counter/ol.yaml: sets reuse-sandbox: false
  • scripts/test.py: fresh_sandbox_test() asserts counter always returns 1

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.

1 participant