airflow icon indicating copy to clipboard operation
airflow copied to clipboard

RabbitMQOperator task stuck on queued when using CeleryExecutor as core executor

Open abdalhalimalzohbi opened this issue 1 year ago • 2 comments

Apache Airflow Provider(s)

redis

Versions of Apache Airflow Providers

airflow-provider-rabbitmq 0.6.1

Apache Airflow version

2.10.2

Operating System

airflow bitnami image

Deployment

Official Apache Airflow Helm Chart

Deployment details

No response

What happened

When using CeleryExecutor as the core executor for Airflow and utilizing the RabbitMQOperator task from rabbitmq_provider.operators.rabbitmq, the task remains stuck in the queued state and is not recognized by Celery workers. The issue arises when attempting to use RabbitMQOperator to publish messages to an external RabbitMQ queue, which is not related to the Airflow instance.

The root cause of the conflict is that the RabbitMQOperator takes a queue field as a parameter, and this value is mistakenly treated as the name of the queue that the Celery workers will use to execute the task. This creates confusion, as the queue parameter is intended to represent the destination queue for message publishing, not the execution queue for Celery tasks.

What you think should happen instead

No response

How to reproduce

NA

Anything else

No response

Are you willing to submit PR?

  • [ ] Yes I am willing to submit a PR!

Code of Conduct

abdalhalimalzohbi avatar Oct 20 '24 15:10 abdalhalimalzohbi

Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.

boring-cyborg[bot] avatar Oct 20 '24 15:10 boring-cyborg[bot]

airflow-provider-rabbitmq is not official Airflow provider. There is no RabbitMQOperator in the Apache-Airflow project. Unless you can explain what is the bug in Airflow code base I suggest to submit this report to the maintainers of airflow-provider-rabbitmq

eladkal avatar Oct 20 '24 17:10 eladkal