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

REST API: make the target profile a query parameter #5052

Closed
sphuber opened this issue Aug 6, 2021 · 1 comment · Fixed by #5054
Closed

REST API: make the target profile a query parameter #5052

sphuber opened this issue Aug 6, 2021 · 1 comment · Fixed by #5054
Assignees
Milestone

Comments

@sphuber
Copy link
Contributor

sphuber commented Aug 6, 2021

Currently, the profile on which the REST API operates is fixed at runtime of the REST API and cannot be changed or configured per request. For a machine serving multiple profiles, this necessitates running a separate REST API instance per profile, which is not very performant. It would be great if the profile can be specified per request and the instance switches the loaded profile if needed. Some of the code necessary for this is already present, but it has not been marked as safe for use in production. Issue #2759 is tracking robustifying this and making switching profiles within a Python interpreter safe.

@ltalirz
Copy link
Member

ltalirz commented Aug 10, 2021

related: #4494 (comment)

@sphuber sphuber added this to the v2.1 milestone Jul 15, 2022
@sphuber sphuber self-assigned this Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants