Django Celery Scrappy ERROR: twisted.internet.error.ReactorNotRestartable
问题 I have next model: Command 'collect' (collect_positions.py) -> Celery task (tasks.py) -> ScrappySpider (MySpider) ... collect_positions.py: from django.core.management.base import BaseCommand from tracker.models import Keyword from tracker.tasks import positions class Command(BaseCommand): help = 'collect_positions' def handle(self, *args, **options): def chunks(l, n): """Yield successive n-sized chunks from l.""" for i in range(0, len(l), n): yield l[i:i + n] chunk_size = 1 keywords =