harvard-lil / perma-capture

GNU Affero General Public License v3.0
3 stars 6 forks source link

Celery shutdown incomplete? #60

Closed rebeccacremona closed 1 year ago

rebeccacremona commented 3 years ago

I've noticed that, if you run with CELERY_TASK_ALWAYS_EAGER = False, you have to stop and restart the Docker container before you can run tests. The first tasks.py task hangs, and if you interrupt:

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! KeyboardInterrupt !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
/usr/local/lib/python3.7/site-packages/celery/backends/base.py:693: KeyboardInterrupt
(to show a full traceback on KeyboardInterrupt use --full-trace)
=============================================== 10 passed in 12.80s ================================================
^CException ignored in: <module 'threading' from '/usr/local/lib/python3.7/threading.py'>
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/threading.py", line 1307, in _shutdown
    lock.acquire()
KeyboardInterrupt

Whazzup with that?