Fix celery worker taking 100% cpu