question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support easily running part of a flow

See original GitHub issue

Archived 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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
jlowincommented, Apr 4, 2020

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.

1reaction
madkinszcommented, Jun 25, 2021

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_validatorshttps://docs.prefect.io/core/concepts/persistence.html#output-caching but it’s not as easy as we’d like.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found