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

Stopping a Lambda render #2030

Open
JonnyBurger opened this issue Apr 18, 2023 · 1 comment
Open

Stopping a Lambda render #2030

JonnyBurger opened this issue Apr 18, 2023 · 1 comment

Comments

@JonnyBurger
Copy link
Member

@jonny Burger Is there any plan (or possibility) to allow a cancel render for renderMediaOnLambda? We have a cancel button when a render is running, but it's just closing a modal while Lambda keeps on going.

hmm, I have to evaluate this to see if it makes sense! in general, once a render function has been spawned, it cannot receive messages from the main function anymore. so we'd have to place a flag somewhere, or maybe with the new lambda streaming functionality we can do something.

@JonnyBurger JonnyBurger added the bug Something isn't working label Apr 18, 2023
@JonnyBurger
Copy link
Member Author

We currently don't implement it because when a lambda is invoked with a request, AWS does not give any way to stop the invocation.

so we could do this by putting a flag in the S3 folder and if a lambda recognizes that this file exists, then the render is cancelled.

but we are moving into a different direction now - lambda now supports streaming and larger response payloads, so we are thinking of adopting that and using it instead of pushing + pulling to lambda.

I will consider cancelling a render on lambda for this new streaming model - it should be more natural, since we can for example "cancel" a render by capping the connection.

@JonnyBurger JonnyBurger changed the title Can we stop a Lambda render? Stopping a Lambda render Jul 6, 2023
@JonnyBurger JonnyBurger removed the bug Something isn't working label Aug 17, 2023
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

No branches or pull requests

1 participant