Fix to make y-axis of Tries chart visible (#10071)
Co-authored-by: Venkatesh Selvaraj <venkateshselvaraj@pinterest.com>
This commit is contained in:
Родитель
f5b7bbcb92
Коммит
11eb649d4a
|
@ -2002,6 +2002,8 @@ class Airflow(AirflowBaseView): # noqa: D101 pylint: disable=too-many-public-m
|
|||
tis = dag.get_task_instances(start_date=min_date, end_date=base_date)
|
||||
tries = sorted(list({ti.try_number for ti in tis}))
|
||||
max_date = max([ti.execution_date for ti in tis]) if tries else None
|
||||
chart.create_y_axis('yAxis', format='.02f', custom_format=False, label='Tries')
|
||||
chart.axislist['yAxis']['axisLabelDistance'] = '-15'
|
||||
|
||||
session.commit()
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче