(num)
| 2224 | conns = [engine.connect() for _ in range(self.THREADS)] |
| 2225 | |
| 2226 | def run(num): |
| 2227 | wanted = str(num) |
| 2228 | connection = conns[num] |
| 2229 | time.sleep(0.1) |
| 2230 | stmt = generate_lambda_stmt(wanted) |
| 2231 | time.sleep(0.1) |
| 2232 | row = connection.execute(stmt).first() |
| 2233 | if not row: |
| 2234 | runs[num] = False |
| 2235 | else: |
| 2236 | runs[num] = True |
| 2237 | |
| 2238 | threads = [ |
| 2239 | threading.Thread(target=run, args=(num,)) |
no test coverage detected