Skip to content

Dag run timeout with timedelta value is rendered as [object object] in UI #32442

Description

@tirkarthi

Apache Airflow version

main (development)

What happened

Dag run timeout with timedelta value is rendered as [object object] in UI. It seems the data is fetched and string is used to render the value. timedelta is handled for schedule_interval which should also be done here.

image

What you think should happen instead

timedelta should be handled similar to how it's done in scheduleInterval value here.

https://github.com/apache/airflow/blob/e70bee00cd12ecf1462485a747c0e3296ef7d48c/airflow/www/static/js/dag/details/Dag.tsx#L278C2-L293

How to reproduce

  1. Create a dag with dag_run_timeout as timedelta value.
  2. Visit the dag details tab in grid view to check dag_run_timeout

Operating System

Ubuntu

Versions of Apache Airflow Providers

No response

Deployment

Virtualenv installation

Deployment details

No response

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions