def METHOD_NAME(
    db: DBInterface, db_session: Session
):
    task_name = "test"
    project = "test-project"
    task_timeout = 0
    mlrun.mlconf.background_tasks.timeout_mode = "disabled"
    db.store_background_task(
        db_session, name=task_name, timeout=task_timeout, project=project
    )
    background_task = db.get_background_task(db_session, task_name, project)
    # expecting to be None because if mode is disabled and timeout provided it ignores it
    assert background_task.metadata.timeout is None
    # expecting created and updated time to be equal because mode disabled even if timeout exceeded
    assert background_task.metadata.created == background_task.metadata.updated
    assert (
        background_task.status.state == mlrun.common.schemas.BackgroundTaskState.running
    )
    task_name = "test1"
    db.store_background_task(db_session, name=task_name, project=project)
    # because timeout default mode is disabled, expecting not to enrich the background task timeout
    background_task = db.get_background_task(db_session, task_name, project)
    assert background_task.metadata.timeout is None
    assert background_task.metadata.created == background_task.metadata.updated
    assert (
        background_task.status.state == mlrun.common.schemas.BackgroundTaskState.running
    )
    db.store_background_task(
        db_session,
        name=task_name,
        project=project,
        state=mlrun.common.schemas.BackgroundTaskState.succeeded,
    )
    background_task_new = db.get_background_task(db_session, task_name, project)
    assert (
        background_task_new.status.state
        == mlrun.common.schemas.BackgroundTaskState.succeeded
    )
    assert background_task_new.metadata.updated > background_task.metadata.updated
    assert background_task_new.metadata.created == background_task.metadata.created