如何让所有挂起的任务显示在芹菜花任务视图中?

时间:2021-07-20 14:00:58

标签: celery flower

我目前正在运行带有花 1.0.0 的 celery 5,redis 作为代理和后端。

只有处于最终结果/墓碑状态的任务在花中可见。是否需要启用其他配置更改?

celery -A main worker --hostname=annotate_@%h --pool=solo --task-events
flower   -> flower:1.0.0 tornado:6.1 humanize:3.10.0
software -> celery:5.1.0 (sun-harmonics) kombu:5.1.0 py:3.10.0b1
            billiard:3.6.4.0 py-amqp:5.0.6
platform -> system:Linux arch:64bit, ELF
            kernel version:5.4.0-1051-azure imp:CPython
loader   -> celery.loaders.app.AppLoader
settings -> transport:amqp results:disabled

deprecated_settings: None
worker configuration:

app = Celery(broker='redacted',
    backend='redis://redacted'
)
app.autodiscover_tasks()
app.conf.task_default_queue = 'redacted'
app.conf.task_track_started = True
app.conf.task_send_sent_event = True
app.conf.worker_send_task_events = True
app.conf.worker_hijack_root_logger = False
app.conf.worker_prefetch_multiplier = 1
app.conf.worker_enable_remote_control = True
app.conf.result_expires = 60 * 60 * 2 # 2 hour TTL in seconds

以下是一些已完成任务的快照,但队列本身有 10 多个待处理和“进行中”。

enter image description here

0 个答案:

没有答案
相关问题