diff --git a/scrapy/commands/queue.py b/scrapy/commands/queue.py index dbede1414..63cf3b5c8 100644 --- a/scrapy/commands/queue.py +++ b/scrapy/commands/queue.py @@ -33,6 +33,10 @@ class Command(runserver.Command): raise UsageError() cmd = args[0] + import warnings + warnings.warn("Scrapy queue command is deprecated - use Scrapyd instead.", \ + DeprecationWarning) + q = self.crawler.queue._queue if cmd == 'add' and len(args) < 2: diff --git a/scrapy/commands/runserver.py b/scrapy/commands/runserver.py index c40133418..9d7fd0615 100644 --- a/scrapy/commands/runserver.py +++ b/scrapy/commands/runserver.py @@ -10,4 +10,7 @@ class Command(ScrapyCommand): return "Deprecated command. Use 'server' command instead" def run(self, args, opts): + import warnings + warnings.warn("Scrapy queue command is deprecated - use 'server' command instead.", \ + DeprecationWarning) self.crawler.start()