Skip to content

Codebase indexer floods event bus on first run — blocks startup #464

Closed

Description

@joelteply

On fresh tower start, CodebaseIndexer fires data:code_index:created at 100x/second, saturating the event bus. The server never becomes healthy — ping times out at 120s. The EventRateLimiter logs the flood but doesn't stop it from blocking the event loop. Fix: index in batches with yields, or run indexer at lower priority after server is healthy.

Activity

  1. joelteply commented on Mar 25, 2026

    @joelteply
    ContributorAuthor

    Server IS running — the startup health check uses lsof which fails on WSL2. The actual server is healthy (curl + jtag ping both succeed). Event coalescing in PR #466 fixed the bus flooding. The lsof issue is WSL2-specific — should use ss or /proc/net/tcp instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions