Skip to content

Isolate per-run logging for concurrent OpenEvolve instances - #498

Open
00200200 wants to merge 1 commit into
algorithmicsuperintelligence:mainfrom
00200200:fix/parallel-logging-isolation-295
Open

00200200 wants to merge 1 commit into
algorithmicsuperintelligence:mainfrom
00200200:fix/parallel-logging-isolation-295

Conversation

@00200200

Copy link
Copy Markdown

Summary

  • Fixes Multiple Openevolve run calls in parallel result in clobbered loggers #295: concurrent OpenEvolve instances no longer stack unfiltered handlers on the root logger and cross-write into each other's log files.
  • Handlers now attach to the openevolve package logger (propagate=False) and are gated by a per-run contextvars filter; handlers are cleaned up when run() finishes.

Test plan

  • Added tests/test_parallel_logging_isolation.py (cross-write + cleanup regression)
  • pytest tests/ -m "not slow and not integration" --ignore=tests/integration — 558 passed

…ss-write.

Attach handlers to the package logger with a contextvar run filter instead of
stacking unfiltered handlers on the root logger (algorithmicsuperintelligence#295).
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

This branch has not been deployed

No deployments
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.

Multiple Openevolve run calls in parallel result in clobbered loggers

2 participants