https://prefect.io logo
#prefect-community
Title
# prefect-community
i

itay livni

05/21/2020, 1:38 AM
Hi - I am trying to understand if there is (1) a reason to configure a result in each task as opposed to just the flow . (2) And is setting the target enough if setting the result in the flow suffices ?
c

Chris White

05/21/2020, 1:41 AM
Hey itay! Most use cases work perfectly well with a single result configured on the Flow + individual task targets. To give you an example of where more nuanced configuration is desirable, I might have a setup that looks like:
Copy code
@task
def return_config_object(param):
    return some_dictionary

@task
def process_big_data(config):
    return pandas_dataframe
In the above case, I might want to see the config in the UI in which case I’ll configure it to use a
PrefectResult
type. The pandas dataframe task, on the other hand, I probably want stored in cloud storage (e.g.,
S3Result
)
i

itay livni

05/21/2020, 1:42 AM
👏 Thank you!
👍 2