https://flyte.org logo
#ask-the-community
Title
# ask-the-community
p

Przemek Niescior

02/22/2023, 8:37 AM
Hello guys. Is there some other option to pass --outputLocationPrefix? I know that this can be used for "flytectl register file ..." and can be set in web UI for workflows registered by pyflyte register. But maybe it can be passed somehow in code? Maybe as some environment variable etc?
s

Samhita Alla

02/22/2023, 9:53 AM
Do you want to set the value in your code? May I know why?
p

Przemek Niescior

02/22/2023, 11:19 AM
Yes, the place where i want to store file can be different, depends on task results.
s

Samhita Alla

02/22/2023, 11:50 AM
How about you use FlyteRemote to register your tasks and workflows? https://docs.flyte.org/projects/flytekit/en/latest/design/control_plane.html#executing-entities
You can fetch the execution, inspect the outputs and set
raw_data_prefix
based on that.