A session is never explicitly closed in the current housekeeper package. We want to be clear about the scope of a session and delimit it explicitly. I think it is fine currently since Housekeeper as far as I understand only is used as a CLI tool and is imported as a package in cg.
A session is never explicitly closed in the current housekeeper package. We want to be clear about the scope of a session and delimit it explicitly. I think it is fine currently since Housekeeper as far as I understand only is used as a CLI tool and is imported as a package in cg.
This old PR contains an example of how we could manage sessions: https://github.com/Clinical-Genomics/housekeeper/pull/75
I think that approach is too convoluted, we want to separate the session handling from the methods doing queries.