-
[OPIK-3794] [Python BE] Quality-of-life improvements for Optimization Studio (#4692)
发布于
2026-01-12 13:26:59 +00:00 - [OPIK-3794] [BE] Improve Optimization Studio logging and RQ worker stability
- Add configurable log level (OPTSTUDIO_LOG_LEVEL) for debugging
- Increase default terminal width to 150 for better Rich panel rendering
- Suppress noisy third-party logs (pyrate_limiter, httpx, LiteLLM)
- Filter Pydantic serialization warnings from LiteLLM
- Move verbose env setup logs to DEBUG level
- Add deferred imports documentation explaining Rich/env var ordering
- Fix RQ worker stale registration cleanup on container restart
- Add OPTSTUDIO_LOG_LEVEL to docker-compose configuration
-
[NA] [BE] Fix _cleanup_stale_workers to only clean up workers from current PID
-
Revision 3: Fix flaky test by using polling instead of fixed sleep
Replace time.sleep(0.5) with wait_for_captured_requests() helper that
polls for expected HTTP requests with a configurable timeout (default 5s).
This avoids CI failures due to slower log flushing in CI environments.下载附件