def get_all_by_incident_id_and_status(*, db_session, incident_id: int, status: str) -> List[Optional[Task]]:
    'Get all tasks by incident id and status.'
    return db_session.query(Task).filter((Task.incident_id == incident_id)).filter((Task.status == status))
Get all tasks by incident id and status.
def get_all_by_incident_id_and_status(*, db_session, incident_id: int, status: str) -> List[Optional[Task]]:
    
    return db_session.query(Task).filter((Task.incident_id == incident_id)).filter((Task.status == status))