Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make trigger importable #11

Merged
merged 1 commit into from
Dec 11, 2023
Merged

Conversation

0xE282B0
Copy link
Contributor

@0xE282B0 0xE282B0 commented Dec 5, 2023

Hi @itowlson,
@leonardpahlke added the SQS trigger to the spin containerd shim as an example of how to add a trigger: deislabs/containerd-wasm-shims#192. To import the SqsTrigger we had to create a lib.rs and move all the functionality except the main function there.

Is this something you can see in the scope of this crate?

Signed-off-by: Sven Pfennig <[email protected]>
@itowlson
Copy link
Collaborator

itowlson commented Dec 5, 2023

@0xE282B0 Totally in scope. I had been meaning to do this to the timer sample as well so that I could do a post on multiple trigger types in Lepton; we should establish this as the pattern for custom triggers going forward. Thanks for tackling this!

@leonardpahlke
Copy link

Hey @itowlson, could we merge this PR & cut a new release so we can update the dependency in the containerd shim PR deislabs/containerd-wasm-shims#192 🙌

@itowlson itowlson merged commit f558b61 into fermyon:main Dec 11, 2023
6 checks passed
@itowlson
Copy link
Collaborator

@leonardpahlke Sorry about that! I'll get a release under way.

@itowlson
Copy link
Collaborator

@leonardpahlke
Copy link

Awesome! I will update the shim PR accordingly

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.

3 participants