numaflow icon indicating copy to clipboard operation
numaflow copied to clipboard

Introduce structured concurrency in the mapper

Open vaibhavtiwari33 opened this issue 8 months ago • 2 comments

@vigith The fix added as part of this PR is still valid.

can you open an issue stating what is the "right way" to solve it? I believe that the solution is to use structured concurrency.

Originally posted by @vigith in https://github.com/numaproj/numaflow/issues/3267#issuecomment-4100992633

vaibhavtiwari33 avatar Mar 20 '26 21:03 vaibhavtiwari33

why re-introduce? did we lose it during refactoring? /cc @yhl25

vigith avatar Mar 20 '26 22:03 vigith

Actually, no, I think I was misremembering while creating the issue that we lost structured concurrency when we introduced map tasks. From the PR it seems we always spawned short-lived tokio tasks even before the refactor.

vaibhavtiwari33 avatar Mar 20 '26 22:03 vaibhavtiwari33