Thread
#prefect-community
    i

    itay livni

    2 years ago
    Hi - A couple of general questions: (1) What is the use case for an imperative flow vs. functional flow? (2) When is mixing the two appropriate?
    Chris White

    Chris White

    2 years ago
    The underlying Flow itself will be identical regardless of whether you build it with the imperative or functional APIs; the two APIs are purely a matter of personal preference. The functional API is best for tasks which exchange data, and the imperative API is best for avoiding creating task copies
    i

    itay livni

    2 years ago
    something like this? Where the results of various
    tasks
    are fed to the to a
    write_results
    task
    but bound with different inputs. e.g.
    filename
    Chris White

    Chris White

    2 years ago
    you’ll need to set a
    key
    for input binding here