Skip to content

Commit

Permalink
Handle DagRun conf errors in FAB's list view (#45763)
Browse files Browse the repository at this point in the history
Before:

```
root@6080aa107d9c:/opt/airflow# airflow webserver
  ____________       _____________
 ____    |__( )_________  __/__  /________      __
____  /| |_  /__  ___/_  /_ __  /_  __ \_ | /| / /
___  ___ |  / _  /   _  __/ _  / / /_/ /_ |/ |/ /
 _/_/  |_/_/  /_/    /_/    /_/  \____/____/|__/
Running the Gunicorn Server with:
Workers: 4 sync
Host: 0.0.0.0:8080
Timeout: 120
Logfiles: - -
Access Logformat:
=================================================================

[2025-01-17T21:39:45.349+0000] {override.py:949} WARNING - No user yet created, use flask fab command to do it.
[2025-01-17T21:39:45.637+0000] {forms.py:107} ERROR - Column conf Type not supported
[2025-01-17T21:39:45.637+0000] {forms.py:107} ERROR - Column conf Type not supported
^C[2025-01-17T21:39:46.187+0000] {webserver_command.py:430} INFO - Received signal: 2. Closing gunicorn.
```

After:
```
root@6080aa107d9c:/opt/airflow# airflow webserver
  ____________       _____________
 ____    |__( )_________  __/__  /________      __
____  /| |_  /__  ___/_  /_ __  /_  __ \_ | /| / /
___  ___ |  / _  /   _  __/ _  / / /_/ /_ |/ |/ /
 _/_/  |_/_/  /_/    /_/    /_/  \____/____/|__/
Running the Gunicorn Server with:
Workers: 4 sync
Host: 0.0.0.0:8080
Timeout: 120
Logfiles: - -
Access Logformat:
=================================================================

[2025-01-17T21:40:16.365+0000] {override.py:949} WARNING - No user yet created, use flask fab command to do it.
[2025-01-17 21:40:18 +0000] [18864] [INFO] Starting gunicorn 23.0.0
[2025-01-17 21:40:29 +0000] [18864] [INFO] Listening at: http://0.0.0.0:8080 (18864)
[2025-01-17 21:40:29 +0000] [18864] [INFO] Using worker: sync
```
  • Loading branch information
kaxil authored Jan 17, 2025
1 parent caa401d commit 3af9ddd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion airflow/www/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -4768,6 +4768,8 @@ class DagRunModelView(AirflowModelView):
permissions.ACTION_CAN_ACCESS_MENU,
]

add_exclude_columns = ["conf"]

list_columns = [
"state",
"dag_id",
Expand Down Expand Up @@ -4803,7 +4805,6 @@ class DagRunModelView(AirflowModelView):
"start_date",
"end_date",
"run_id",
"conf",
"note",
]

Expand Down

0 comments on commit 3af9ddd

Please sign in to comment.