Data Engineer
Airflow and orchestration questions
169 questions on Airflow and orchestration for data engineers, easiest first.
Easy 52
- What is a DAGeasy
- Retrying flaky Airflow taskseasy
- What an Airflow sensor doeseasy
- Reading a cron scheduleeasy
- Operator, task and task instanceeasy
- What the scheduler doeseasy
- Metadata database for productioneasy
- What @weekly meanseasy
- Attempts with retries=3easy
- Reading a >> [b, c] >> deasy
- Why use an EmptyOperatoreasy
- Passing data between taskseasy
- Value of {{ ds_nodash }}easy
- A new DAG that never runseasy
- Finding why a task failedeasy
- Where to keep a database passwordeasy
- Hook versus operatoreasy
- Getting the Amazon operatorseasy
- A DAG with a loop in iteasy
- A DAG that only runs on demandeasy
- Finding the finance DAGs quicklyeasy
- default_args and a task that differseasy
- What a TaskGroup is foreasy
- Debugging a DAG on a laptopeasy
- Passing a date range on a manual runeasy
- A Slack message when a task failseasy
- Starting another DAG at the endeasy
- A task that needs its own librarieseasy
- The day before dseasy
- Stopping Airflow from parsing helperseasy
- Task in up_for_retryeasy
- Rerunning one failed taskeasy
- A task that hangs for hourseasy
- Trying one task from the command lineeasy
- Two teams use the same dag_ideasy
- Explaining a DAG to the on-call personeasy
- Which view shows past run stateseasy
- Reading one key of a JSON Variableeasy
- Passing arguments to a PythonOperatoreasy
- Using a DAG param in SQLeasy
- Running every 6 hourseasy
- A campaign DAG that should stopeasy
- Triggering a DAG from another systemeasy
- Not running Airflow yourselfeasy
- A poor fit for Airfloweasy
- Wait before a retry by defaulteasy
- Querying Postgres inside a @taskeasy
- An alert task that fires on failureeasy
- Key of a returned XComeasy
- What a @task.bash function returnseasy
- Where DAG files must be placedeasy
- Storing a list of regionseasy
Medium 67
- Why use ref() in dbtmedium
- Surprise runs from catchupmedium
- When a daily Airflow run startsmedium
- An API call at the top of a DAG filemedium
- Reading a Variable without parse costmedium
- start_date=datetime.now()medium
- Ten tasks through a 4-slot poolmedium
- Backfilled runs running one at a timemedium
- Cleanup that must always runmedium
- Join task skipped after a branchmedium
- State after a short-circuitmedium
- TaskFlow without >>medium
- Mapped tasks from two listsmedium
- Fixed arguments in a mapped taskmedium
- A template that stays as textmedium
- TemplateNotFound for a .sh scriptmedium
- A 9 AM IST DAG in UTC termsmedium
- Extra pieces for CeleryExecutormedium
- How KubernetesExecutor runs tasksmedium
- What depends_on_past doesmedium
- Waiting for a DAG with another schedulemedium
- Setting parallelism by environmentmedium
- Task instances in a 30-day rerunmedium
- Task id inside a TaskGroupmedium
- Clearing a task between setup and teardownmedium
- No emails during a backfillmedium
- Limiting one heavy task across runsmedium
- Only 16 tasks run at oncemedium
- Sending a task to GPU workersmedium
- One task needs pandas 1.xmedium
- Rejecting a bad manual inputmedium
- A BashOperator that ends skippedmedium
- Same conn_id in two placesmedium
- Defining a connection in an env varmedium
- What the Fernet key protectsmedium
- A row-count check that failsmedium
- Logs missing after a pod finishesmedium
- Running two branches at oncemedium
- Choosing the rows for a daily extractmedium
- Mapping over files found at run timemedium
- A run that blocks the next onesmedium
- schedule_interval after upgradingmedium
- New DAGs not showing after Airflow 3 setupmedium
- Pulling a named XCom in a templatemedium
- Returning several values from a @taskmedium
- An optional file that may not comemedium
- Waiting until a job API says donemedium
- Writing a custom operatormedium
- Catching broken DAGs before deploymedium
- Making task logic easy to testmedium
- Running a dbt project in Airflowmedium
- Alerting when a run is latemedium
- Metadata database keeps growingmedium
- Running only on working daysmedium
- Worker slots versus parallelismmedium
- Heavy tasks taking 3 slots eachmedium
- Task state removed in old runsmedium
- Join after an optional stepmedium
- Keeping SQL in separate filesmedium
- Templates inside a dict argumentmedium
- What a BashOperator pushesmedium
- Imports for DAG authors in Airflow 3medium
- Mapping over matched pairsmedium
- Readable names for mapped tasksmedium
- Manual run stuck in queuedmedium
- Loading DAGs from a Git repomedium
- How a reschedule sensor counts timemedium
Hard 50
- Safe backfillshard
- Sensors blocking every workerhard
- Failed task but the run is greenhard
- Sensor timeout with retries sethard
- Cron with both day fields sethard
- Every task loads the last tablehard
- XCom from a failed attempthard
- Tasks stuck in deferredhard
- A DAG file Airflow ignoreshard
- A templated list arrives as a stringhard
- Daylight saving and two scheduleshard
- Mapping over zero fileshard
- DAG import timed outhard
- DAG scheduled on two assetshard
- Task code querying the metadata DBhard
- Running two schedulers safelyhard
- Tasks waiting while workers sit idlehard
- Sensor waits hours on a failed upstreamhard
- 500 sensors waiting for hourshard
- Running task on a dead workerhard
- Received SIGTERM in a task loghard
- Retry waits that grow too longhard
- Doubled rows after a retryhard
- Effective priority of a root taskhard
- Mapping over 2,000 itemshard
- {{ execution_date }} after Airflow 3hard
- Consumer DAG ran with no new datahard
- Run when either feed updateshard
- Mixing executors in one deploymenthard
- Short-circuit that skips the final alerthard
- depends_on_past vs wait_for_downstreamhard
- Summing results of mapped taskshard
- Database calls in __init__hard
- Lost variable after a task resumeshard
- Who runs a backfill in Airflow 3hard
- A task that asks for too many slotshard
- Large XComs without filling the databasehard
- Template lost inside an f-stringhard
- Clearing across two DAGshard
- Waiting on a triggered DAG cheaplyhard
- Triggering from a message queuehard
- An API key printed in a task loghard
- Two runs overwriting one temp filehard
- Report runs 4 hours late in Dubaihard
- Workers dying on a pandas joinhard
- One of 12 mapped tasks failshard
- ds moved by a day after a timetable changehard
- Alerts per failed attempthard
- Finishing old runs before new oneshard
- A sensor that also returns datahard