-
Notifications
You must be signed in to change notification settings - Fork 16.4k
Closed
Labels
Description
Apache Airflow version
main (development)
What happened
Steps to reproduce:
- run 2 replicas of scheduler
- initiate shut down of one of the schedulers
- In Airflow UI observe message
3rd step should be done immediately after 2nd (refreshing UI page few times). 2nd and 3rd steps might be repeated for couple of times in order to reproduce.
What you think should happen instead
Warning message shouldn't be displayed.
The issue is that for this warning message recent (with latest heartbet) scheduler job is fetched
airflow/airflow/jobs/base_job.py
Line 133 in f02a7e9
| return session.query(cls).order_by(cls.latest_heartbeat.desc()).limit(1).first() |
And this may point to job which is not running (state!="running") and that is why we see warning message.
The warning message in this case is misleading as another replica of scheduler is running in parallel.
How to reproduce
No response
Operating System
Linux
Versions of Apache Airflow Providers
No response
Deployment
Composer
Deployment details
No response
Anything else
No response
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
