Skip to content

ShortCircuitOperator not skipping tasks #30842

Answered by Sighery
matthieucx asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, I'm new to Airflow, and haven't used it much yet. We are just getting started with it. I think, and also judging by the documentation for the ShortCircuitOperator, it's considering the result as True, and that's why it continues. From the documentation:

If the returned result is False or a falsy value, the pipeline will be short-circuited. Downstream tasks will be marked with a state of “skipped” based on the short-circuiting mode configured. If the returned result is True or a truthy value, downstream tasks proceed as normal and an XCom of the returned result is pushed.

[False] is a truthy value in Python, since it's not an empty array. If you want the result to be falsy, you'll h…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@matthieucx
Comment options

Answer selected by matthieucx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants