我在Ubuntu EC2节点上有一个Django项目,我一直在使用它来设置一个使用Celery
的异步。
我已经能够在命令行执行基本任务,使用:
(env1)ubuntu@ip-172-31-22-65:~/projects/tp$ celery --app=myproject.celery:app worker --loglevel=INFO
我刚刚意识到,我的队列中有很多任务没有执行:
[2015-03-28 16:49:05,916: WARNING/MainProcess] Restoring 4 unacknowledged message(s).
(env1)ubuntu@ip-172-31-22-65:~/projects/tp$ celery -A tp purge
WARNING: This will remove all tasks from queue: celery.
There is no undo for this operation!
(to skip this prompt use the -f option)
Are you sure you want to delete all tasks (yes/NO)? yes
Purged 81 messages from 1 known task queue.
如何从命令行获取排队项的列表?
如果你想得到所有预定的任务
查找所有活动队列
为了地位
对于所有命令
如果您想明确地得到它,因为您使用
redis
作为队列。那么然后找出与
celery
有关的东西以下是Redis的复制粘贴解决方案:
它和Django一起工作。别忘了改变
yourproject.celery
。相关问题 更多 >
编程相关推荐