hardStudy question · answer published in Airflow interview questions, so no pointsairflowidempotencyairflow-retries
Doubled rows after a retry
A task runs INSERT INTO sales SELECT ... for the day, then fails while refreshing a summary. The retry succeeds, and that day's sales now appear twice. What is the right fix?
INSERT INTO sales SELECT * FROM staging WHERE dt = '{{ ds }}';
REFRESH MATERIALIZED VIEW sales_summary; -- failed hereDiscussion 0
Join free to post in the discussion.
Related questions
- Retrying flaky Airflow tasksData Engineer
- What an Airflow sensor doesData Engineer
- Reading a cron scheduleData Engineer
- Operator, task and task instanceData Engineer
- What the scheduler doesData Engineer
- Metadata database for productionData Engineer
- What @weekly meansData Engineer
- Attempts with retries=3Data Engineer