file d'attente python pas vide

while not q.empty():
    row = q.get()
    # do something with row
    q.task_done()
Nervous Nightingale