相关疑难解决方法(0)

如何获取 rq 队列中的作业数量?

我使用过rq和 RedisToGo。如何获取队列中的作业数量?我在文档中找不到它?(Python)

当我尝试时:

print "Before: ", len(q.jobs)
result = q.enqueue(worker.A)
result = q.enqueue(worker.B)
print "After: ", len(q.jobs)
Run Code Online (Sandbox Code Playgroud)

两次都只给出 0。

python resque

4
推荐指数
1
解决办法
3397
查看次数

标签 统计

python ×1

resque ×1