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

Draft: Run all methods of a class in the same container pool #1789

Draft
wants to merge 67 commits into
base: main
Choose a base branch
from

Conversation

freider
Copy link
Contributor

@freider freider commented May 3, 2024

Work in progress

TODO:

  1. Remove debugging code
  2. Clean up hacky quickfixes/make stuff a bit more readable
  3. Fix container entrypoint
  4. First release proto change
  5. Update some backend rpcs so they can return the new required fields
  6. Release a client without these new features that warns if keep_warm has different values for different methods or if .keep_warm() is being used on methods?

@freider freider changed the title Freider/class functions Draft: Run all methods of a class in the same container pool May 3, 2024
freider added 30 commits May 24, 2024 13:12
* ModalWrappedCls().method is unchanged (returns the _Obj-bound Function object)
* ModalWrappedCls.method and UserCls.method now return the PartialFunction object - this is used by serialize(UserCls)
* UserCls().method now returns the original method bound to the UserCls instance - acts like vanilla python since that's what UserCls is
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.

None yet

1 participant