Hello, I have a mapped task B, in which, depending...
# ask-community
m
Hello, I have a mapped task B, in which, depending on the data obtained, I either generate the data (artifact) or not. This data is passed to the next mapped task C. If I do not generate data in task B, then I want to Skip it, and task C. How easy way for me to do it?
z
Hi @Marko Herkaliuk - State signals would the most common way to implement something like this https://docs.prefect.io/core/concepts/execution.html#state-signals In task B, if the data is not generated, you would
raise prefect.engine.signals.SKIP
, which will also skip any downstream tasks
upvote 2
❤️ 1
m
Thanks @Zach Angell. Every time I make sure that your support is excellent.
🙂 1