feat: improve isolation uipath#1440
Merged
cotovanu-cristian merged 4 commits intomainfrom Mar 24, 2026
Merged
Conversation
b6896fe to
13fe0a8
Compare
Reset studio_solution_id and invalidate cached _internal_arguments so pooled server jobs don't inherit stale config from previous jobs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
If job A calls set_llm_concurrency(), the limit bleeds into job B in pooled server mode. Adding a reset function allows the factory dispose chain to restore the default between jobs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
13fe0a8 to
50cd73e
Compare
Comment on lines
46
to
+57
| global _llm_concurrency_limit, _llm_semaphore, _llm_semaphore_loop | ||
| _llm_concurrency_limit = limit | ||
| _llm_semaphore = None | ||
| _llm_semaphore_loop = None | ||
|
|
||
|
|
||
| def reset_llm_concurrency() -> None: | ||
| """Reset LLM concurrency limit and semaphore to defaults.""" | ||
| global _llm_concurrency_limit, _llm_semaphore, _llm_semaphore_loop | ||
| _llm_concurrency_limit = DEFAULT_LLM_CONCURRENCY | ||
| _llm_semaphore = None | ||
| _llm_semaphore_loop = None |
Contributor
There was a problem hiding this comment.
why are these global?
andreitava-uip
approved these changes
Mar 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
reset_llm_concurrency()tollm_throttlemodule — resets the concurrency limit and semaphore to defaultsConfigurationManager.reset()— clearsstudio_solution_idand invalidates the_internal_argumentscached property so the config file is re-read on next accessuipathto 2.10.27 anduipath-platformto 0.1.6