Closed ab93 closed 1 year ago
Describe the bug gRPC async is not fully supported.
To Reproduce Steps to reproduce the behavior:
Define an async handler: async def map_handler(key: str, datum: Datum) -> Messages: val = datum.value _ = datum.event_time _ = datum.watermark messages = Messages(Message.to_vtx(key, val)) await asyncio.sleep(1) return messages
async def map_handler(key: str, datum: Datum) -> Messages: val = datum.value _ = datum.event_time _ = datum.watermark messages = Messages(Message.to_vtx(key, val)) await asyncio.sleep(1) return messages
Run a simple forward message pipeline
Expected behavior The udf should work and just forward pass the message.
Screenshots
Environment (please complete the following information):
Message from the maintainers:
Impacted by this bug? Give it a 👍. We often sort issues this way to know what to prioritize.
we have added first-class support for async map.
Describe the bug gRPC async is not fully supported.
To Reproduce Steps to reproduce the behavior:
Define an async handler:
async def map_handler(key: str, datum: Datum) -> Messages: val = datum.value _ = datum.event_time _ = datum.watermark messages = Messages(Message.to_vtx(key, val)) await asyncio.sleep(1) return messages
Run a simple forward message pipeline
Expected behavior The udf should work and just forward pass the message.
Screenshots
Environment (please complete the following information):
Numaflow-python: v0.2.6
Message from the maintainers:
Impacted by this bug? Give it a 👍. We often sort issues this way to know what to prioritize.