dheerajturaga commented on code in PR #55301: URL: https://github.com/apache/airflow/pull/55301#discussion_r2326081555
########## providers/edge3/src/airflow/providers/edge3/worker_api/routes/ui.py: ########## @@ -100,3 +105,57 @@ def jobs( jobs=result, total_entries=len(result), ) + + +class MaintenanceRequest(BaseModel): + """Request body for maintenance operations.""" + + maintenance_comment: Annotated[str, Field(description="Comment describing the maintenance reason.")] + + +@ui_router.post( + "/worker/{worker_name}/maintenance", +) Review Comment: @jscheffl , I already tried this and I was not able to get the post and delete to work. I keep getting 401 not authorized and I was not able to figure out how to provide proper authorization. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@airflow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org