Skip to content

Add the bulk support for maint and exit maint mode for edge worker#65015

Merged
jscheffl merged 2 commits intoapache:mainfrom
shubhamraj-git:edge3-bulk-maint
Apr 10, 2026
Merged

Add the bulk support for maint and exit maint mode for edge worker#65015
jscheffl merged 2 commits intoapache:mainfrom
shubhamraj-git:edge3-bulk-maint

Conversation

@shubhamraj-git
Copy link
Copy Markdown
Contributor

Screenshots -

image image image
Was generative AI tooling used to co-author this PR?

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@boring-cyborg boring-cyborg bot added area:providers provider:edge Edge Executor / Worker (AIP-69) / edge3 labels Apr 10, 2026
@kaxil kaxil requested a review from Copilot April 10, 2026 19:55
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the Edge worker UI bulk-operations feature to support requesting maintenance mode and requesting exit from maintenance mode for multiple selected workers, aligning bulk actions with the existing per-worker maintenance controls.

Changes:

  • Added bulk “enter maintenance” and “exit maintenance” actions (including eligible-state filtering and pending states) to the bulk actions hook.
  • Introduced new eligible-state sets for bulk maintenance enter/exit in shared constants.
  • Updated the bulk operations UI to show new buttons and confirmation dialogs (with a required maintenance comment for entering maintenance).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
providers/edge3/src/airflow/providers/edge3/plugins/www/src/hooks/useBulkWorkerActions.ts Adds bulk maintenance enter/exit mutations, eligibility filtering, and exposes new handlers/state.
providers/edge3/src/airflow/providers/edge3/plugins/www/src/constants.ts Defines eligible Edge worker states for bulk maintenance enter/exit operations.
providers/edge3/src/airflow/providers/edge3/plugins/www/src/components/BulkWorkerOperations.tsx Adds UI buttons and dialogs for bulk maintenance enter/exit, including a required comment field for enter.

Copy link
Copy Markdown
Contributor

@jscheffl jscheffl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool! Thanks! Tested locally - looking forward having this in production!

@jscheffl jscheffl merged commit 34497e5 into apache:main Apr 10, 2026
83 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants