Skip to content

Conversation

Signed-off-by: Kazuki Yamamoto <yamamoto.kazuki.24@gmail.com>
@sesame0224 sesame0224 marked this pull request as ready for review February 4, 2026 01:37
@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

❌ Patch coverage is 50.00000% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 94.05%. Comparing base (27ad810) to head (573028b).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
...kages/pynumaflow/pynumaflow/mapper/async_server.py 50.00% 1 Missing ⚠️
.../pynumaflow/pynumaflow/mapstreamer/async_server.py 50.00% 1 Missing ⚠️
...ages/pynumaflow/pynumaflow/reducer/async_server.py 50.00% 1 Missing ⚠️
...numaflow/pynumaflow/reducestreamer/async_server.py 50.00% 1 Missing ⚠️
...kages/pynumaflow/pynumaflow/sinker/async_server.py 50.00% 1 Missing ⚠️
...ages/pynumaflow/pynumaflow/sourcer/async_server.py 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #311      +/-   ##
==========================================
+ Coverage   94.00%   94.05%   +0.05%     
==========================================
  Files          66       66              
  Lines        3053     3080      +27     
  Branches      156      156              
==========================================
+ Hits         2870     2897      +27     
  Misses        136      136              
  Partials       47       47              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@vigith vigith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

        self.shutdwon_callback = shutdown_callback

please fix the typo here and at the usage sites too?

so that all the async coroutines can be started from a single context
"""
aiorun.run(self.aexec(), use_uvloop=True)
aiorun.run(self.aexec(), use_uvloop=True, shutdown_callback=self.shutdwon_callback)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
aiorun.run(self.aexec(), use_uvloop=True, shutdown_callback=self.shutdwon_callback)
aiorun.run(self.aexec(), use_uvloop=True, shutdown_callback=self.shutdown_callback)

typo

to the aexec so that all the async coroutines can be started from a single context
"""
aiorun.run(self.aexec(), use_uvloop=True)
aiorun.run(self.aexec(), use_uvloop=True, shutdown_callback=self.shutdwon_callback)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
aiorun.run(self.aexec(), use_uvloop=True, shutdown_callback=self.shutdwon_callback)
aiorun.run(self.aexec(), use_uvloop=True, shutdown_callback=self.shutdown_callback)

typo

self.max_threads = min(max_threads, MAX_NUM_THREADS)
self.max_message_size = max_message_size
self.server_info_file = server_info_file
self.shutdwon_callback = shutdown_callback
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.shutdwon_callback = shutdown_callback
self.shutdown_callback = shutdown_callback

self.max_threads = min(max_threads, MAX_NUM_THREADS)
self.max_message_size = max_message_size
self.server_info_file = server_info_file
self.shutdwon_callback = shutdown_callback
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.shutdwon_callback = shutdown_callback
self.shutdown_callback = shutdown_callback

Signed-off-by: Kazuki Yamamoto <yamamoto.kazuki.24@gmail.com>
@vigith vigith requested review from BulkBeing and kohlisid February 4, 2026 05:04
@BulkBeing
Copy link
Contributor

Can you please make the same change in the remaining files as well to make the API consistent?

  • pynumaflow/sourcetransformer/async_server.py
  • pynumaflow/batchmapper/async_server.py
  • pynumaflow/accumulator/async_server.py

Also, please update the documentation comment for this parameter (within the class or under __init__)

- Also, update the documentation comment for this parameter

Signed-off-by: Kazuki Yamamoto <yamamoto.kazuki.24@gmail.com>
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