Misleading scheduler health message when using SequentialExecutor #23081
Labels
affected_version:main_branch
Issues Reported for main branch
area:UI
Related to UI/UX. For Frontend Developers.
area:webserver
Webserver related Issues
Body
In the UI we have a message that warns in case the scheduler isn't running:
The scheduler does not appear to be running. Last heartbeat was received X minutes ago.
https://github.com/apache/airflow/blame/5144bedcee76466a79eea0b2b6137e5899dc73bd/airflow/www/templates/airflow/main.html#L60-L71
This message however is confusing for
SequentialExecutor
.In
SequentialExecutor
we can run only 1 task so while a task is running the scheduler is not sending health checks which results in this message but it make sense that there is no heartbeat because there is a task that occupy the slot.My suggestion is to make the message be conditional
in case of Sqlite / Sequential executor + no active runs -> It's OK to show the message if scheduler is not live.
in case of Sqlite / Sequential executor + active run -> Message should not appear.
Committer
The text was updated successfully, but these errors were encountered: