Skip to content

Using the output of a HttpOperator as input for a SQLExecuteQueryOperator when it is executed in chunks #39080

Answered by KennyPeeters
KennyPeeters asked this question in Q&A
Discussion options

You must be logged in to vote

The scope of my question existed out of following steps:

  • Retrieving a total number of records using an HttpOperator
  • Calculate a number of chunks to be executed based on the total number and a (self defined) limit size
  • Perform the actions: "load_data >> write_data" preferably executed for the calculated chunks (in my case 9) in that sequence

The issue I had:

  • In a default setup the DAG would load the data for the 9 chunks and then write the data for the 9 chunks

While I kept on trying to get my use-case to work I also tested the pointers from this discussion, but I got it working on my own approach:

Above screenshot shows:

  • get_data_1 is success, temporary_wait_..._1 is success and wri…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
7 replies
@dabla
Comment options

@dabla
Comment options

@dabla
Comment options

@dabla
Comment options

@potiuk
Comment options

Comment options

You must be logged in to vote
2 replies
@potiuk
Comment options

@KennyPeeters
Comment options

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