Is there a way to pass in result_storage as a para...
# ask-community
d
Is there a way to pass in result_storage as a parameter to a flow from a deployment? I want to have the results stored for a given run based on the bucket I am using as an input parameter to the flow
n
do you want to save the result for the flow that is the entrypoint of your deployment? if you want to do it for a subflow / task, you can do my_task.with_options(result_storage=…)(*args, **kwargs) (same for subflows). if it’s the result of the entrypoint flow you want to dynamically config result storage for you’d have to get more creative (may not be directly supported)
d
Yeah I was trying to do it for the entrypoint. Let me know if you have any ideas. Thanks!
n
well you could just wrap what was going to be your return value in a no op task and call that with options
it’s kinda silly, but the task will save its return value to its result storage on exit and then you can return the tasks return from your flow