-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EDGE]Enable edge worker maintenance mode #45958
Open
majorosdonat
wants to merge
68
commits into
apache:main
Choose a base branch
from
boschglobal:feature/enable-edge-worker-maintenance-mode
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[EDGE]Enable edge worker maintenance mode #45958
majorosdonat
wants to merge
68
commits into
apache:main
from
boschglobal:feature/enable-edge-worker-maintenance-mode
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…/github.com/boschglobal/airflow into feature/enable-edge-worker-maintenance-mode
majorosdonat
changed the title
[WIP]nable edge worker maintenance mode
[EDGE]Enable edge worker maintenance mode
Jan 24, 2025
jscheffl
added
type:new-feature
Changelog: New Features
AIP-69
Edge Executor
provider:edge
Edge Executor / Worker (AIP-69)
labels
Jan 24, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 5 out of 15 changed files in this pull request and generated no comments.
Files not reviewed (10)
- providers/edge/README.rst: Language not supported
- providers/edge/docs/changelog.rst: Language not supported
- providers/edge/src/airflow/providers/edge/openapi/edge_worker_api_v1.yaml: Language not supported
- providers/edge/src/airflow/providers/edge/plugins/templates/edge_worker_hosts.html: Language not supported
- providers/edge/src/airflow/providers/edge/cli/api_client.py: Evaluated as low risk
- providers/edge/src/airflow/providers/edge/get_provider_info.py: Evaluated as low risk
- providers/edge/provider.yaml: Evaluated as low risk
- providers/edge/tests/provider_tests/edge/cli/test_edge_command.py: Evaluated as low risk
- providers/edge/src/airflow/providers/edge/init.py: Evaluated as low risk
- providers/edge/pyproject.toml: Evaluated as low risk
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
AIP-69
Edge Executor
area:providers
provider:edge
Edge Executor / Worker (AIP-69)
type:new-feature
Changelog: New Features
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Maintenance mode is enabled for the edge worker. In maintenance mode, the worker is alive, but cannot consume any jobs.
The maintenance mode can be triggered by a button from the edge worker status page. It writes the state "maintenance request" directly to the database as worker state. Then the worker will go to maintenance pending if there are running jobs, and maintenance mode if all jobs have finished.
When exiting maintenance mode, maintenance exit is written to the database. Then the worker will switch to running state if it was in state maintenance pending, and to idle if it was in maintenance mode.
Why do we need the state maintenance exit?
If the user requested maintenance, so the maintenance request is in the database, and the user wants to exit maintenance immidiately e.g. for misclick, then we will not know if we should write running or idle to the database.
^ 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.