Skip to content

Codex fix default instance concurrency#15

Merged
mic1on merged 2 commits into
mainfrom
codex-fix-default-instance-concurrency
Mar 12, 2026
Merged

Codex fix default instance concurrency#15
mic1on merged 2 commits into
mainfrom
codex-fix-default-instance-concurrency

Conversation

@mic1on

@mic1on mic1on commented Mar 12, 2026

Copy link
Copy Markdown
Member

No description provided.

mic1on added 2 commits March 12, 2026 12:02
- Replace global default instance with ContextVar to isolate per execution context
- Add RLock to protect Publisher.channels and Publisher.retry_config
- Snapshot state before publishing to avoid concurrent modifications
- Add tests for thread/async task isolation and concurrent state mutations
- Use ThreadPoolExecutor to execute sync notifications with timeout
- Shutdown executor with wait=False to avoid blocking main thread
- Add tests for sync timeout in both sync and async contexts
- Add test for async timeout behavior
- Remove unused NotifySendError import
- Fix code style issues (blank lines, imports)
@mic1on mic1on merged commit 5f95363 into main Mar 12, 2026
3 checks passed
@mic1on mic1on deleted the codex-fix-default-instance-concurrency branch March 12, 2026 12:31
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.

1 participant