Split AppList into client and internal web RPCs #2073
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
As part of MOD-3370, I'm going to split out the RPCs for listing apps on the server, with the AppList RPC used by the client library's
modal app list
command.Right now these are the same RPC, which is not great for either use case because:
So we're splitting them out. The current AppList RPC will continue to be used so we keep compatibility with existing clients.
I'm removing these line of code and moving them to the server. There will be a brief interval where
modal app list
reports more recently-stopped apps than usual in the CLI while the server change is being rolled out:Tests
All tests pass except for version_test, which is an unrelated issue.
Server PR
corresponding server PR: https://github.com/modal-labs/modal/pull/14576
Changelog
modal.apps.list_apps()
function, which was internal and not intended to be part of public API.