Skip to content

Commit 447f0c3

Browse files
committed
Moved pair log before execution
1 parent 493f788 commit 447f0c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/acquisition/covidcast/database.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,13 @@ def worker():
315315
try:
316316
while True:
317317
(source, signal) = srcsigs.get_nowait() # this will throw the Empty caught below
318+
logger.info("starting pair", thread=name, pair=f"({source}, {signal})")
318319
w_cursor.execute(inner_sql, (source, signal))
319320
with meta_lock:
320321
meta.extend(list(
321322
dict(zip(w_cursor.column_names, x)) for x in w_cursor
322323
))
323324
srcsigs.task_done()
324-
logger.info("completed pair", thread=name, pair=f"({source}, {signal})")
325325
except Empty:
326326
logger.info("no jobs left, thread terminating", thread=name)
327327
finally:

0 commit comments

Comments
 (0)