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
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 firsttasks.py
task hangs, and if you interrupt:Whazzup with that?