Mitigate ctrl-c somewhat
This commit is contained in:
2
main.py
2
main.py
@@ -59,7 +59,7 @@ def main():
|
|||||||
try:
|
try:
|
||||||
# block until all tasks are done
|
# block until all tasks are done
|
||||||
while not q.empty():
|
while not q.empty():
|
||||||
time.sleep(1) # Interruptable
|
time.sleep(5) # Interruptable
|
||||||
q.join()
|
q.join()
|
||||||
# stop workers
|
# stop workers
|
||||||
for _ in range(thread_count):
|
for _ in range(thread_count):
|
||||||
|
|||||||
Reference in New Issue
Block a user