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

Implement ASGI Lifespan protocol #294

Closed
wants to merge 2 commits into from
Closed

Conversation

MHHukiewitz
Copy link
Member

Should solve #293 in part. Goal of this PR is to have the most basic implementation of the ASGI Lifespan protocol possible without interfering with existing VMs that do not support the lifespan call.

…nt has the same timeout as a regular function invocation now (on-demand calls can have up to 3x of the compute time available now)
@hoh hoh self-requested a review April 20, 2023 12:41
@@ -120,6 +122,7 @@ async def create(
await vm.start()
await vm.configure()
await vm.start_guest_api()
await self.run_code({"type": "lifespan.startup"})
Copy link
Member

Choose a reason for hiding this comment

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

Why not launch this event from the start of the VM init1.py ?

Copy link
Member Author

Choose a reason for hiding this comment

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

@MHHukiewitz
Copy link
Member Author

Superseded by #295

@MHHukiewitz MHHukiewitz deleted the mhh-lifespan-events branch April 21, 2023 07:10
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