Is there a way to access `max_parallelism` from wi...
# flyte-support
b
Is there a way to access
max_parallelism
from within a task to make a batching decision at the point of a fan-out? Or is this difficult to figure out because I shouldn't be doing it? 😅
I'm getting the impression that I am trying to do something bad since the FlyteRemote docs also discourage use in Tasks
Do not use
FlyteRemote
within task code.
the only other similar documented approach is passing a
chunk
argument around? https://www.union.ai/docs/flyte/user-guide/programming/nested-parallelism/ -- but seems like you could use
max_parallelism
to determine your chunk size more appropriately.
f
Yes using control plane in tasks is discouraged as it may not be as performant
@bland-dress-83134 we are working on something new that solves this problem at the core - would you be interested in talking and sharing thoughts
It should solve your problem elegantly
b
definitely interested 😄