Closed dcnieho closed 1 year ago
Little bit of a race condition huh? Indeed this can be a problem, thanks for the bug report! Btw for stuff like this a pull request allows you to submit (or suggest) changes to the code base and also get credit in the homepage and release page!
I wasn't so sure as on the one hand threading logic tells me this should be an issue, on the other hand, i am hardly familiar with Python async, nor am i much of a Python programmer. So i wasn't sure this was the right solution, nor if there are nooks and crannies to Python's async that make this not an issue. All that said, given the topic of your software i prefer not to get too much credit haha. I'm already working from home to avoid the employer having questions ;)
On Wed, Sep 7, 2022 at 3:58 PM WillyJL @.***> wrote:
Little bit of a race condition huh? Indeed this can be a problem, thanks for the bug report! Btw for stuff like this a pull request allows you to submit (or suggest) changes to the code base and also get credit in the homepage and release page!
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
Ah of course :D
Also side note this made me realize the the following api.shutdown is superfluous now, since it’s handled by the with block
It is theoretically possible to have the save action executed after the db connection is closed but before the application is fully exited. Shouldn't you do something like this to guard against that?