internalsGet Pro

Module 14 · Lesson 3 of 10Pro

Writing Airflow DAGs: operators and sensors

Level
Intermediate
Topic
Orchestration with Airflow
Reading time
16 min

When you finish this page you can

  1. Pick the right kind of task for each step of a pipeline: a TaskFlow function, a provider operator or a command-line operator.
  2. Write a sensor that waits for a condition Kartly doesn’t control, and choose between poke, reschedule and deferrable waiting.
  3. Set a sensor’s timeout and soft_fail from the time the pipeline can afford to wait.
  4. Keep a DAG file a declaration, with run-time values in templates and task arguments, not in top-level code.

Builds on 3 lessons

Start with lesson 113 min
  1. Orchestration: DAGs, tasks and dependencies13 min
  2. Airflow architecture: scheduler, workers and metadata17 min
  3. Design: ingesting orders from five sources28 min

Partner C arrived in time, and the report left it out

At 07:00 IST on Tuesday 18 January 2028, Daniel’s finance report for Monday said “partner C: missing”. Partner C’s file, 15,000 lines of Monday’s sales, had landed in S3 at 05:10. The build was allowed to wait for it until 05:30.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan