GitHub
08/06/2024, 5:35 PMelt.buffer_size setting in meltano config ... test
Issue created by edgarrmondragon
Feature scope
CLI (options, error messages, logging, etc.)
Description
The setting is currently used in
meltano/src/meltano/core/block/singer.py
Lines 327 to 337 in</meltano/meltano/commit/dce4d361bfdbb7bf1dd832caaadf27ef401cf301|dce4d36>
| stream_buffer_size = self.project.settings.get("elt.buffer_size") |
| ----------------------------------------------------------------- |
| line_length_limit = stream_buffer_size // 2 |
| |
| stdin = asyncio.subprocess.PIPE if self.consumer else None |
| try: |
| self.process_handle = await self.invoker.invoke_async( |
| limit=line_length_limit, |
| stdin=stdin, # Singer messages |
| stdout=asyncio.subprocess.PIPE, # Singer state |
| stderr=asyncio.subprocess.PIPE, # Log |
| ) |
to pass a custom `limit`1 value to asyncio.create_subprocess_exec.
Since the extractor validator also calls plugin_invoker.invoke_async, it could pass the limit value too:
meltano/src/meltano/core/plugin_test_service.py
Lines 77 to 80 in</meltano/meltano/commit/dce4d361bfdbb7bf1dd832caaadf27ef401cf301|dce4d36>
| process = await self.plugin_invoker.invoke_async( |
| ------------------------------------------------- |
| stdout=asyncio.subprocess.PIPE, |
| stderr=asyncio.subprocess.STDOUT, |
| ) |
Footnotes
1. https://docs.python.org/3/library/asyncio-subprocess.html#asyncio.create_subprocess_exec ↩️
meltano/meltanoGitHub
08/09/2024, 1:39 AMelt.buffer_size setting in meltano config ... test
Issue closed as completed by edgarrmondragon
meltano/meltano