Is there an easy way to run part of a flow? I.e. r...
# ask-community
b
Is there an easy way to run part of a flow? I.e. run up to and including task
x
?
l
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!
b
Thanks @Laura Lorenz (she/her), that would be great!
l
@Marvin archive “Support easily running part of a flow”
c
I wonder: could conditionally raising a SKIP signal and having downstream tasks use
skip_on_upstream_skip
essentially prune any remaining tasks in the flow? docs seem to say this but I've never tried it: https://docs.prefect.io/core/concepts/states.html#skip-while-running