Replies: 10 comments
-
|
Thanks for opening your first issue here! Be sure to follow the issue template! |
Beta Was this translation helpful? Give feedback.
-
|
Why not willing to implement it @ARtheboss ? Airflow is a community run project and a lot of users contribute to it, sounds like a simple change to implement? We are happy to guide you and help you with the contribution process. |
Beta Was this translation helpful? Give feedback.
-
|
@potiuk Ok, I don't mind, just not sure how this works. Where are the relevant files for the web UI? |
Beta Was this translation helpful? Give feedback.
-
|
No idea, I do not know that much of the UI. But I do not think it's as difficult - those are just HTML templates/javascript |
Beta Was this translation helpful? Give feedback.
-
|
But there are others who might help |
Beta Was this translation helpful? Give feedback.
-
|
If you already know some Flask, what you need to do is to add a form in the UI that POST to a new view. That view should take the current task instance’s id, select it out, set its state to The form should look something like this: <form action="{{ url_for('name_of_view') }}" method="POST">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
<input type="hidden" name="dag_id" value="{{ dag_id }}">
<input type="hidden" name="task_id" value="{{ task_id }}">
<button type="submit">Retry Task</button>
</form> |
Beta Was this translation helpful? Give feedback.
-
|
Here is the html file for the task instance page. I'd start there. |
Beta Was this translation helpful? Give feedback.
-
|
@potiuk May I take this issue, please? |
Beta Was this translation helpful? Give feedback.
-
|
@zkan go for it! |
Beta Was this translation helpful? Give feedback.
-
|
We added logs inside of the grid view and clear/mark actions are always available in that view. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Users should be able to clear a task along with all downstream tasks from the Task Instance page (especially the log subpage). In other words, we should be able to get a similar menu to the one that appears when you click on a task square from tree view on the Task Instance page.
Use case / motivation
This will make it easier to retry a task and will require less clicks (users won't have to go into the tree/graph page and then clear from there).
Are you willing to submit a PR?
Possibly
Related Issues
None
Beta Was this translation helpful? Give feedback.
All reactions