Skip to content

Processing logic in Sensors #43579

Answered by potiuk
corkienjoyer asked this question in Q&A
Discussion options

You must be logged in to vote

You should look at deferrable operators. Quite often deferrable operator is precisely the kind of combo that you wait on something first (and you defer until this happens) and then you do stuff.

Also you might take a look at datasets instead of TriggerDagRunOperator - you can have one dag produce the dataset and the other consume it and this would automatically trigger the dependent dag when the first completes. That allows you to also visualy see the dependencies better and have your "Datasets" logically represent the actual datasets that are produced/consumed by separate dags - making them more logical

Replies: 1 comment 1 reply

Comment options

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

Answer selected by corkienjoyer
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