我想用django-utils以并行线程(这些命令在I/O上处理99.99%)异步启动大量命令。不过,我不断收到以下错误:djutils队列命令没有被发现
QueueException: MyProject.maintenanceInterface.commands.queuecmd_refreshDataAsync not found in CommandRegistry
功能refreshDataAsync是commands.py内maintenanceInterface - 和maintenanceInterface是在安装的应用程序列表。
我正在排队的消费者,像这样:
python .\manage.py queue_consumer
当我看着排队的消费者日志,它会告诉我,它已经发现的功能(在INIT):
djutils.commands.queuecmd_delayed_resize
djutils.queue.queue.QueueCommand
djutils.queue.queue.PeriodicQueueCommand
maintenanceInterface.commands.queuecmd_refreshDataAsync
2012-04-18 16:57:10,598:djutils.queue.logger:INFO:Starting periodic command execution thread
仍然抛出异常。
我错过了某个步骤?
该系统的下一个版本将使用芹菜。 – Goro 2012-04-19 18:52:26