kazanzhy opened a new pull request #20071: URL: https://github.com/apache/airflow/pull/20071
closes: #19922 related: #20044 Add return condition for `ShortCircuinOperator`. If `python_callable` returns the object that casts as `True` then that object will be available as XCom with key `return_value`. Possible use case: If we need to run pipeline only when some files exist in a certain directory. Then callable in `ShortCircuitOperator` could return all files in the directory. If there are no files then downstream tasks will be skipped (`[] == False`) otherwise downstream tasks just will take the list of files and process it. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
