ruia/spider.py
async def stop(self, _signal):
        """
        Finish all running tasks, cancel remaining tasks, then stop loop.
        :param _signal:
        :return:
        """
        self.logger.info(f'Stopping spider: {self.name}')
        await self._cancel_tasks()
        self.loop.stop()
async def stop(self, _signal):
        """
        Finish all running tasks, cancel remaining tasks, then stop loop.
        :param _signal:
        :return:
        """
        self.logger.info(f'Stopping spider: {self.name}')
        await self._cancel_tasks()
        self.loop.stop()
async def stop ( self , _signal ) : self . logger . info ( f'Stopping spider: {self.name}' ) await self . _cancel_tasks ( ) self . loop . stop ( )
Finish all running tasks, cancel remaining tasks, then stop loop.
        :param _signal:
        :return:
Finish all running tasks cancel remaining tasks then stop loop . : param _signal : : return :