Support easily running part of a flow
See original GitHub issueArchived from the Prefect Public Slack Community
ben.fogelson: Is there an easy way to run part of a flow? I.e. run up to and including task x
?
laura: Hi! No, I don’t think so without changing your flow code (for example simply commenting out whatever after x
you had added to your flow graph). You can run individual tasks (re: https://docs.prefect.io/core/advanced_tutorials/task-guide.html#calling-your-task-s-run-method) but if your flow is complex that isn’t realistic to simulate a partial flow. It is an interesting idea though and I did a quick search and we don’t have an issue already open on it, so I can publish this thread into a new issue to request it!
ben.fogelson: Thanks <@UTHEQ4F9R>, that would be great!
laura: <@ULVA73B9P> archive “Support easily running part of a flow”
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:9 (1 by maintainers)
Top Results From Across the Web
How to test only parts of a flow without running the whole thing
Solved: I'm building a somewhat lengthy flow that grabs data from a SharePoint list several times (different ODATA filters each time). After grabbing....
Read more >THE FLOW STATE: THE SCIENCE OF RUNNING IN "THE ...
Simply, flow is complete immersion in the task at hand. Some great thinkers claim that this experience is happiness defined.
Read more >Locking Into Flow | Runner's World
"Part of being in flow is having clear goals and getting unambiguous feedback," Jackson says. "Sport has many factors that help set up...
Read more >The “Zone” and how to run in it (flow state) - YouTube
Being in the zone, or in flow state is an art form but it's a very trainable art form! By simply knowing what...
Read more >Run Part of a Record-Triggered Flow After the Triggering Event
Add a scheduled path to your record-triggered flow if you want part of the flow to run at a dynamically scheduled time after...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
We once had
start_tasks
as an option which ran a “pruned” subgraph of the flow (removed in #668). While the implementation itself was straightforward (we included all nodes downstream of the root nodes) the complexities it introduced were significant - users often were unaware that states upstream of the root tasks had to be properly passed in order for triggers/data dependencies to work as expected, and it resulted in some confusion. I think it’s definitely doable but the UX needs some work.Hey @fjord-prefect – I think this will mostly be resolved by planned improvements to our caching interface. Basically, the upstream tasks that you don’t want to re-run will be easily set to run once per time period. You can actually do this now using
cache_validators
– https://docs.prefect.io/core/concepts/persistence.html#output-caching but it’s not as easy as we’d like.