Skip to content

[EDGE]Fix maintenance states during shut down#46861

Merged
jscheffl merged 4 commits intoapache:mainfrom
boschglobal:bugfix/edge-worker-remembers-maintenance-comment
Feb 18, 2025
Merged

[EDGE]Fix maintenance states during shut down#46861
jscheffl merged 4 commits intoapache:mainfrom
boschglobal:bugfix/edge-worker-remembers-maintenance-comment

Conversation

@majorosdonat
Copy link
Contributor

When a worker is registered, and it was in offline maintenance, we set the state to maintenance request. However, this has a side effect. During graceful shut down we set the state to offline maintenance, and if we are not lucky, the heartbeat is called again, which will set the state to maintenance request from offline maintenance during shut down.
Solution: Only modify offline maintenance to maintenance request if the worker is starting up


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added the provider:edge Edge Executor / Worker (AIP-69) / edge3 label Feb 18, 2025
@jscheffl jscheffl merged commit 3b5a503 into apache:main Feb 18, 2025
61 checks passed
ntr pushed a commit to ntr/airflow that referenced this pull request Feb 20, 2025
* fix states during shut down

* Modify state machine

* add more tests

* fix static checks

---------

Co-authored-by: Majoros Donat (XC-DX/EET2-Bp) <donat.majoros2@hu.bosch.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

provider:edge Edge Executor / Worker (AIP-69) / edge3

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants