示例#1
0
文件: celery.py 项目: dekoza/weblate
def get_queue_length(queue='celery'):
    with celery_app.connection_or_acquire() as conn:
        return conn.default_channel.queue_declare(
            queue=queue, durable=True, auto_delete=False
        ).message_count
示例#2
0
def get_queue_length(queue='celery'):
    with celery_app.connection_or_acquire() as conn:
        return conn.default_channel.queue_declare(
            queue=queue, durable=True, auto_delete=False).message_count
示例#3
0
def get_queue_length():
    with celery_app.connection_or_acquire() as conn:
        return conn.default_channel.queue_declare(queue='celery').message_count