jscheffl commented on code in PR #55301:
URL: https://github.com/apache/airflow/pull/55301#discussion_r2326096542
##########
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:
Good. But still needed. Probably because you implemented the manual
authentication in the service accessor.
Can you attempt it via the axios generated code? If then not working, please
push and I can help fixing.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]