Handle Database Cancelled Queries (a.k.a. DB Timeouts)#31
Handle Database Cancelled Queries (a.k.a. DB Timeouts)#31JVickery-TBS merged 3 commits intocanada-v2.10from
Conversation
- Handle database query timeouts and close tmp files.
- Added change log file.
|
it's usually a good pattern to use a context manager or Here you're closing the file within a closure that wasn't responsible for creating the file, or even passed it as a parameter. That's a little confusing and it's hard to see that the file will always be closed by looking at the code. |
- File close in finally.
|
@wardi yeah the temp file comes from XLoader's I kind of just coded it the same as the rest of XLoader is coded, which I guess is not great if all these try/catches and file closing is happening in enclosure methods?? But I see at the end of the method, upstream has the |
fix(logic): catch db timeouts;