### Apache Airflow version

2.5.1

### What happened

/calendar page give a problem, here is the capture



![屏幕截图 2023-01-30 093116](https://user-images.githubusercontent.com/19165258/215369479-9fc7de5c-f190-460c-9cf7-9ab27d8ac355.png)


### What you think should happen instead

_No response_

### How to reproduce

_No response_

### Operating System

Ubuntu 22.04.1 LTS

### Versions of Apache Airflow Providers

Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy

### Deployment

Other

### Deployment details


Distributor ID: Ubuntu
Description:    Ubuntu 22.04.1 LTS
Release:        22.04
Codename:       jammy

### Anything else

_No response_

### Are you willing to submit 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)

op1.run()
    op2.run()
    op1_fails = (
        session.query(TaskFail)
        .filter(
            TaskFail.task_id == "fail",
            TaskFail.dag_id == dag.dag_id,
        )
        .all()
    )
    op2_fails = (
        session.query(TaskFail)
        .filter(
            TaskFail.task_id == "success",
            TaskFail.dag_id == dag.dag_id,
        )
        .all()
    )
    assert len(op1_fails) == 1
    assert len(op2_fails) == 0
    with unittest.mock.patch.object(app, "dag_bag") as mocked_dag_bag:
        mocked_dag_bag.get_dag.return_value = dag
        resp = admin_client.get(f"dags/{dag.dag_id}/duration", follow_redirects=True)
        html = resp.get_data().decode()
        cumulative_chart = json.loads(re.search("data_cumlinechart=(.*);", html).group(1))
        line_chart = json.loads(re.search("data_linechart=(.*);", html).group(1))
        assert resp.status_code == 200
        assert sorted(item["key"] for item in cumulative_chart) == ["fail", "success"]
        assert sorted(item["key"] for item in line_chart) == ["fail", "success"]
def test_graph_view_doesnt_fail_on_recursion_error(app, dag_maker, admin_client):