Skip to content

Add celery stats to Airflow webui #11623

@turbaszek

Description

@turbaszek

Description

Show basic information about Celery workers in Airflow webui.

Use case / motivation

Currently, users using CeleryExecutor have to use Flower to access information about Celery workers. I would like to propose adding new view in Airflow webui that would show similar information.

This should be easily doable by using:

from airflow.executors.celery_executor import app

inspect = self.app.control.inspect(timeout=0.01, destination=None)
result = partial(getattr(inspect, "stats"))()

Note: this is how Flower gets the information.

Related Issues

N/A

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions