Skip to content

fix(ingestion): ExtractionWorker.shutdown() silently drops buffered extractions that haven't fired yet #70

Description

@laxmanclo

async_worker.py shutdown() cancels pending _debounced_process tasks but the _UserBuffer still holds unprocessed requests. Short conversations that haven't hit the 800-token threshold lose their fact extraction on process shutdown. Fix: in shutdown(), call _process(key) for every key in self._buffers with pending requests before cancelling timers.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions