Commit 79dd03e
committed
Ref #701 -- Use temporary connection in DB check
Since the Database check is currently implemented syncronously,
Django doesn't have a async ORM yet, we need to always close the
connection. Django's DB connections are thread local and a new
connection will be created for each run. Persisted connections
will not be cleaned up. We can either call close or simply use
a temporary connection.1 parent bdc061a commit 79dd03e
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
122 | 121 | | |
123 | 122 | | |
124 | 123 | | |
125 | 124 | | |
126 | | - | |
| 125 | + | |
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
| |||
133 | 132 | | |
134 | 133 | | |
135 | 134 | | |
136 | | - | |
137 | | - | |
138 | 135 | | |
139 | 136 | | |
140 | 137 | | |
| |||
0 commit comments