Skip to content

feat: integrate async in ng#955

Draft
mhoff wants to merge 68 commits intomainfrom
feat-integrate-async
Draft

feat: integrate async in ng#955
mhoff wants to merge 68 commits intomainfrom
feat-integrate-async

Conversation

@mhoff
Copy link
Copy Markdown
Collaborator

@mhoff mhoff commented Apr 10, 2026

Description

  • Briefly summarize your changes in a few bullet points (can and should correspond to CHANGELOG.md)
  • Relates to #XXX (insert issue number here), if there is a corresponding GH issue

Assignee

  • The changes adhere to the contribution guidelines
  • I have performed a self-review of my code
  • My changes generate no new warnings (e.g. flake8/mypy/pytest/...) other than deprecations

Documentation

Code Quality

  • Patch test coverage > 95% and does not decrease
  • New code uses correct & specific type hints

How did you verify that the changes work in practice?

  • List of (preferably easy reproducible) tests including OS

Reviewer


The rendered docs for this PR can be found here.

kaya-david and others added 30 commits April 7, 2026 06:39
…s about queue sizes; add state reporting for terminal events
kaya-david and others added 30 commits April 7, 2026 06:40
…cle across components

- unify component lifecycle by introducing async setup/shut_down across NG components
- remove legacy _shut_down pattern and simplify base Component shutdown logic
- align Connector/Input/Output/Processor lifecycle interfaces
- fix kafka output delivery semantics by setting DELIVERED only via on_delivery callback
- improve kafka error handling (BufferError retry, KafkaException -> FAILED)
- ensure proper resource cleanup (consumer unsubscribe/close, producer flush, opensearch context close)
- improve worker shutdown by cancelling only unfinished tasks

# Conflicts:
#	logprep/ng/connector/opensearch/output.py
- remove docker compose teardown from SIGINT handler to avoid interfering with active OpenSearch requests
- introduce coordinated shutdown via _shutdown_requested flag
- add shutdown checkpoints to abort benchmark flow safely
- ensure compose teardown happens only in controlled finally blocks
- fix intermittent 503 errors during OpenSearch _count caused by concurrent shutdown
- remove docker compose teardown from SIGINT handler to avoid interfering with active OpenSearch requests
- introduce coordinated shutdown via _shutdown_requested flag
- add shutdown checkpoints to abort benchmark flow safely
- ensure compose teardown happens only in controlled finally blocks
- fix intermittent 503 errors during OpenSearch _count caused by concurrent shutdown
… (unsubscribe only needed for dynamic topic switching during runtime)
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.

3 participants