You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Lee-W (via GitHub)" <gi...@apache.org> on 2025/06/23 14:07:35 UTC
[I] UI for Human in the root operators [airflow]
Lee-W opened a new issue, #52094:
URL: https://github.com/apache/airflow/issues/52094
### Description
According to [AIP-90](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=362056119#AIP90Humanintheloop-ScreenMockups), we'll need the following pages to enable users to respond through the Airflow UI, in addition to using the REST API.
### 1. An input page that allows users to enter

This involves two public API (not yet implemented or finalized)
1. `GET /hitl/input-requests/{task_instance_id}`: get the details to render on the pages (this API should probably also have the information on whether the input-request has been fulfilled)
2. `POST /hitl/responses/{task_instance_id}/`: after users enter data through the form or click the button, this API should be called, and then it should be disabled as we only accept one input.
### 2. A page that shows tasks waiting for responses
1. `GET /hitl/input-requests`

### Use case/motivation
[AIP-90](https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=362056119)
### Related issues
_No response_
### Are you willing to submit a PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] UI for Human in the loop operators [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on issue #52094:
URL: https://github.com/apache/airflow/issues/52094#issuecomment-2998572635
> Clicking on one should open a modal with a dynamically generated form, exactly how the dag trigger params works today.
Let me try to play with it. Thanks!
> Where does the information that a task needs input or had manual input live? Can we easily find it by filtering the list tasks or task instances endpoints?
It's not yet clear at the moment, but I'll try a bit and get back to you. I think it should be doable 🤔
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] UI for Human in the loop operators [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on issue #52094:
URL: https://github.com/apache/airflow/issues/52094#issuecomment-3006737822
> [@guan404ming](https://github.com/guan404ming) go for it. I see two pieces
>
> I think we might need just 2-3 endpoints:
>
> * fetch a list of hitl tasks, filter by task_id, open/closed, run_id. For closed tasks at leats, it should have the submitted user input
>
> * fetch the params for an hitl unless that is in the above endpoint
>
> * post to submit human input
These endpoints (at these partially) have already in https://github.com/apache/airflow/pull/52053.
2 will be part of 1. some detail is missing in 1 at this moment but will be added in the following up PRs
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] UI for Human in the loop operators [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on issue #52094:
URL: https://github.com/apache/airflow/issues/52094#issuecomment-3153011052
closed by #53035
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] UI for Human in the loop operators [airflow]
Posted by "guan404ming (via GitHub)" <gi...@apache.org>.
guan404ming commented on issue #52094:
URL: https://github.com/apache/airflow/issues/52094#issuecomment-2998746849
Hi @Lee-W, I've took a look about this AIP and really interested about this new feature. Could I help with building POC of UI part? Thanks!
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] UI for Human in the loop operators [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on issue #52094:
URL: https://github.com/apache/airflow/issues/52094#issuecomment-3049096592
Hey @guan404ming,
I wanted to share the new PR for the major backend changes related to AIP-90. We decided to integrate it into the core, which will simplify many things. Please feel free to branch out from my branch for testing. It would be great if you could create a draft PR. By the way, the video you showed me last time looked awesome!
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] UI for Human in the loop operators [airflow]
Posted by "bbovenzi (via GitHub)" <gi...@apache.org>.
bbovenzi commented on issue #52094:
URL: https://github.com/apache/airflow/issues/52094#issuecomment-2997148515
I would like to extend our Dashboard and Overview pages for this. One of the first things on our home page dashboard should show the number of tasks that require human input across the whole UI. On a Dag Overview page, it will show the ones just for that dag.
I do like adding the red notification circle on the nav bar though!
Clicking on one should open a modal with a dynamically generated form, exactly how the dag trigger params works today.
Where does the information that a task needs input or had manual input live? Can we easily find it by filtering the list tasks or task instances endpoints?
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] UI for Human in the loop operators [airflow]
Posted by "bbovenzi (via GitHub)" <gi...@apache.org>.
bbovenzi commented on issue #52094:
URL: https://github.com/apache/airflow/issues/52094#issuecomment-3005921191
@guan404ming go for it. I see two pieces
I think we might need just 2-3 endpoints:
- fetch a list of hitl tasks, filter by task_id, open/closed, run_id. For closed tasks at leats, it should have the submitted user input
- fetch the params for an hitl unless that is in the above endpoint
- post to submit human input
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] UI for Human in the loop operators [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on issue #52094:
URL: https://github.com/apache/airflow/issues/52094#issuecomment-2999378229
If @bbovenzi does not oppose or already has some implementation/idea, I'll assign this to @guan404ming for now. He'll be back to this one after this Saturday, but the backend also needs some time as well so I think we should be good
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] UI for Human in the loop operators [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on issue #52094:
URL: https://github.com/apache/airflow/issues/52094#issuecomment-2996657314
Hey @pierrejeambrun @bbovenzi , would love to know your thoughts on this one. Whether the high-level idea makes sense, and whether there are other backend things missed. Thanks!
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] UI for Human in the loop operators [airflow]
Posted by "pierrejeambrun (via GitHub)" <gi...@apache.org>.
pierrejeambrun commented on issue #52094:
URL: https://github.com/apache/airflow/issues/52094#issuecomment-3000652982
Looks nice, I think Brent suggestions makes sense and could be a good starting point.
From the API point of view, that makes sense too. I assume endpoints will live directly in the provider and will be registered by the provider. (Similarly to what's happening for fab provider)
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] UI for Human in the loop operators [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on issue #52094:
URL: https://github.com/apache/airflow/issues/52094#issuecomment-3131672124
The PR is almost ready. Functionality wise works find IMO. One minor piece missed but I won't mind making that a follow up PR. I'll go ahead and approve the PR but will need someone knows Frontend better to take a deeper look
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] UI for Human in the loop operators [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W closed issue #52094: UI for Human in the loop operators
URL: https://github.com/apache/airflow/issues/52094
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] UI for Human in the loop operators [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on issue #52094:
URL: https://github.com/apache/airflow/issues/52094#issuecomment-3017448785
Hey @guan404ming , the last time I discussed with @pierrejeambrun , we'll probably need to wait for AIP-68. So there are 2 things we can do for the time being
1. Take a look at AIP-68
2. Implement the UI part in the core, but separate it as module-like things so that we can quickly move it when AIP-68 is ready
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] UI for Human in the loop operators [airflow]
Posted by "Lee-W (via GitHub)" <gi...@apache.org>.
Lee-W commented on issue #52094:
URL: https://github.com/apache/airflow/issues/52094#issuecomment-3061654056
@guan404ming I've just updated the description based on the latest implementation. The endpoints will be updated to return `dag_id, task_id, dag_run_id` and support filtering. But we can display what we have now Could you please let me know if you have any questions? Thanks!
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] UI for Human in the loop operators [airflow]
Posted by "guan404ming (via GitHub)" <gi...@apache.org>.
guan404ming commented on issue #52094:
URL: https://github.com/apache/airflow/issues/52094#issuecomment-3061669714
Sure, I would take a look and would let you know if there is any questions. Thanks~
--
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-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org