Replies: 3 comments 3 replies
-
Thanks for opening your first issue here! Be sure to follow the issue template! |
Beta Was this translation helpful? Give feedback.
-
Thanks potiuk, I'll share this with customer and report back tomorrow. We may be able to strip PII from customer's DAG and share portions. Would you be willing and able to work with us if we are able to share relevant information? |
Beta Was this translation helpful? Give feedback.
-
I had a similar issue. Airflow scheduler and webserver both were down. I restarted them and all my workflows kicked off simultaneously. I want to prevent this. |
Beta Was this translation helpful? Give feedback.
-
Apache Airflow version
2.2.3
What happened
The queuing process in Airflow2 continues to access
already-completed job, effectively corrupting start times/end
times. This ruins the ability for job dependencies to chain together.
After a long period of no change to completed tasks, while under heavy load, airflow re-schedules all historical jobs just to have them do no operation and complete. When the job is re-queued, the start time is re-set, and nothing happens, and the end time is immediately re-set as well.
The updating of these dates to NOW() is problematic, since there are listeners monitoring the values of these fields. When the completion time is updated, other tasks are fired off.
Why did the jobs get re-queued?
We are able to reproduce the problem and provide a video call where questions may be asked.
What you expected to happen
Once tasks are complete, they should never be re-queued and re-executed.
If tasks must be re-queued and re-executed, the start and end times of the already completed tasks must not be updated.
How to reproduce
Put environment under heavy load for a short period
monitor the start/end times of tasks
note that the start/end times are updated all concurrently
Operating System
composer-2.0.3-airflow-2.2.3
Versions of Apache Airflow Providers
composer-2.0.3-airflow-2.2.3
Deployment
Composer
Deployment details
Available on request from customer. Please be discrete with these sensitive information.
Anything else
No response
Are you willing to submit PR?
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions