Joe Schmid
07/18/2019, 5:57 PMChris White
07/18/2019, 6:02 PMSpecifically, I’m thinking about whether it’s possible to preserve some of the interactivity of notebooks while still defining tasks and flows, e.g. be able to run a single task independent of a flow, knowing that we may need to pass it appropriate parameters, etc.This is something that is very much possible right now. For example, you can run a Prefect Task in isolation by calling the
.run()
method of the task (and passing appropriate keyword arguments that it requires). You can also mock up Flow Runs by passing task states to flow.run(task_states={...})
to test your triggers, etc. There are many other ways of running pieces of your Flow / Tasks interactively that I will make a point of documenting better in the very near futureJoe Schmid
07/18/2019, 6:25 PM