Skip to content
RED SAG Skills
hardStudy question · answer published in AWS interview questions, so no pointsairflowpythonairflow-debugging

Every task loads the last table

Three tasks are created in a loop. When they run, all three load "payments". Why?

for t in ["orders", "users", "payments"]:
    PythonOperator(
        task_id=f"load_{t}",
        python_callable=lambda: load_table(t),
    )
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions