Skip to content

Improvement/global polling - #61

Open
Saaketh0 wants to merge 6 commits into
feature/otel-exporterfrom
improvement/global-polling
Open

Improvement/global polling#61
Saaketh0 wants to merge 6 commits into
feature/otel-exporterfrom
improvement/global-polling

Conversation

@Saaketh0

@Saaketh0 Saaketh0 commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

Added concurrency to the polling function in global controller. Added ThreadPoolExecutor.

Large diff is mainly just wrapping things into new blocks and indents, not much actual changes.

Saaketh0 and others added 6 commits August 31, 2026 11:21
Metrics/telemetry latency scaled with instance count x per-instance
round-trip time since every instance was polled sequentially, one
blocking the next, with the following tick only starting after the
whole pass finished. Extracted the per-instance body into
_poll_one_instance (whole body wrapped in one top-level try/except,
since ThreadPoolExecutor.map() re-raises on first exception when
results are consumed) and run all instances concurrently via the same
ThreadPoolExecutor pattern _trigger_cleanup already used.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Brings in all OTel cleanup work:
- Removed legacy single-destination fallback
- Removed langfuse Basic-Auth auto-injection
- Updated DESIGN.md to remove legacy references
- Simplified config env-var expansion
- Fixed langfuse config examples
- Merged latest from main (joke_writer, porting skill, etc.)

All conflicts resolved by taking feature/otel-exporter's cleaner versions.
… and remove _write_entrypoint_file

- Fixed langfuse example to use generic env-var headers pattern
- Removed _write_entrypoint_file (directory structure preservation via _sweep_py_files is cleaner)
Re-applied the parallel instance polling that was lost during conflict
resolution. The _poll_controllers method now uses ThreadPoolExecutor to
poll all instances concurrently via _poll_one_instance, preventing one
slow instance's Redis/Postgres round-trip from blocking the entire poll
tick.
@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (1)
  • main

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Team

Run ID: ad7747eb-68b1-41fb-9591-e3c560da0c25

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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