-
-
Notifications
You must be signed in to change notification settings - Fork 586
Bugfix/refine code lock #1216
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
Bugfix/refine code lock #1216
Conversation
…gfix/refine-code-lock
PR Compliance Guide 🔍(Compliance updated until commit cd6eb1c)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit 558f01d
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||
PR Type
Bug fix, Enhancement
Description
Convert code processor from async to synchronous execution model
Remove centralized
CodeScriptExecutorand integrate locking directly intoPyCodeInterpreterReplace async/await patterns with synchronous
SemaphoreSlim.Wait()for code executionSimplify concurrency control by removing
MaxConcurrencyconfiguration settingRemove Python thread interruption logic from cancellation handling
Diagram Walkthrough
File Walkthrough
4 files
Convert RunAsync method to synchronous RunUpdate code processor call from async to syncUpdate code processor call from async to syncConvert InnerRunCode from async to synchronous4 files
Remove MaxConcurrency configuration propertyRemove CodeScriptExecutor dependency injectionRemove CodeScriptExecutor singleton registrationRemove MaxConcurrency from coding configuration2 files
Delete centralized code script executor classIntegrate locking logic and convert to synchronous execution