Thread
#prefect-community
    Marko Herkaliuk

    Marko Herkaliuk

    1 year ago
    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?
    Zach Angell

    Zach Angell

    1 year ago
    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
    Marko Herkaliuk

    Marko Herkaliuk

    1 year ago
    Thanks @Zach Angell. Every time I make sure that your support is excellent.