Skip to content

Add lambda worker sample#286

Open
Sushisource wants to merge 7 commits intomainfrom
lambda-worker
Open

Add lambda worker sample#286
Sushisource wants to merge 7 commits intomainfrom
lambda-worker

Conversation

@Sushisource
Copy link
Copy Markdown
Member

@Sushisource Sushisource commented Apr 3, 2026

This PR adds a sample for the new lambda worker usable in conjunction with the new serverless workers features on server/cloud.

It also introduces this sample as a completely independent Python package. All other samples will be converted to work this way in the near future.

@Sushisource Sushisource marked this pull request as ready for review April 16, 2026 23:03
@Sushisource Sushisource requested a review from a team as a code owner April 16, 2026 23:03
Comment thread lambda_worker/workflows.py Outdated
from activities import hello_activity


@workflow.defn(versioning_behavior=common.VersioningBehavior.AUTO_UPGRADE)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I seem to remember hearing at the demo meeting that we recommend using PINNED instead of auto-upgrade. Should we do the same in the samples?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah good point, thanks for the reminder.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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