assert get_ti_from_db(task_3).state == State.SUCCESS
    
    assert get_ti_from_db(task_4).state == State.SUCCESS
    
    assert get_ti_from_db(task_5).state == State.NONE
    assert get_ti_from_db(task_6).state == State.NONE
    
    assert get_ti_from_db(task_7).state == State.SKIPPED
    dagrun.refresh_from_db(session=session)
    
    assert dagrun.get_state() == State.QUEUED
    assert {t.key for t in altered} == {
        ("test_set_task_group_state", "section_1.task_1", dagrun.run_id, 1, -1),
        ("test_set_task_group_state", "section_1.task_3", dagrun.run_id, 1, -1),
    }
@pytest.mark.parametrize(
    "start_date, expected_infos",
    [
        (
            DEFAULT_DATE,
            [DagRunInfo.interval(DEFAULT_DATE, DEFAULT_DATE + datetime.timedelta(hours=1))],
        ),
        (
            DEFAULT_DATE - datetime.timedelta(hours=3),
            [
                DagRunInfo.interval(
                    DEFAULT_DATE - datetime.timedelta(hours=3),
                    DEFAULT_DATE - datetime.timedelta(hours=2),
                ),