SuperCrishna opened a new issue, #77641:
URL: https://github.com/apache/airflow/issues/77641

   ### Under which category would you file this issue?
   
   Providers
   
   ### Apache Airflow version
   
   3.4.0
   
   ### What happened and how to reproduce it?
   
   using the docker-compose.yaml here 
'https://airflow.apache.org/docs/apache-airflow/3.4.0/docker-compose.yaml'
   
   with mu podman and podman-compose, on RHEL 10 and 9, the health check of the 
airflow_airflow-worker_1 reported unhealthy, all other seems fine.
   
   it was not returning the good output. stayin that no nodes responded to the 
pong command, so using the console within podman container, i tried the command 
that was initialy configured from the yamel and indeed , getting the same error 
output
   
   celery --app airflow.providers.celery.executors.celery_executor.app inspect 
ping -d "celery@${HOSTNAME}"
   
   it produce this output
   
   Error:
   Unable to load celery application.
   While trying to load the module airflow.executors.celery_executor.app the 
following error occurred:
   Traceback (most recent call last):
   File 
"/home/airflow/.local/lib/python3.13/site-packages/celery/bin/celery.py", line 
137, in celery
   app = find_app(app)
   File 
"/home/airflow/.local/lib/python3.13/site-packages/celery/app/utils.py", line 
383, in find_app
   sym = symbol_by_name(app, imp=imp)
   File 
"/home/airflow/.local/lib/python3.13/site-packages/kombu/utils/imports.py", 
line 59, in symbol_by_name
   module = imp(module_name, package=package, **kwargs)
   File 
"/home/airflow/.local/lib/python3.13/site-packages/celery/utils/imports.py", 
line 105, in import_from_cwd
   return imp(module, package=package)
   File "/usr/python/lib/python3.13/importlib/init.py", line 88, in 
import_module
   return _bootstrap._gcd_import(name[level:], package, level)
   ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   File "<frozen importlib._bootstrap>", line 1404, in _gcd_import
   File "<frozen importlib._bootstrap>", line 1369, in _find_and_load
   File "<frozen importlib._bootstrap>", line 1333, in _find_and_load_unlocked
   ModuleNotFoundError: No module named 'airflow.executors.celery_executor'
   
   the other pods (healthcheck) are fine, the vaiable hostname is alone and has 
no usrname prefuixing it with a @ and the healthcheck is working with that same 
variable.
   
   
   ### What you think should happen instead?
   
   what should happend is that hostname should be validated or read correctly 
when prefixed with a usernanme@
   
   so i changed it on my docker-compose.yaml for this instead
   
   line 174
   
   test: ["CMD-SHELL", 'celery --app 
airflow.providers.celery.executors.celery_executor.app inspect ping -d 
celery@`cat /proc/sys/kernel/hostname` || celery --app 
airflow.executors.celery_executor.app inspect ping -d celery@`cat 
/proc/sys/kernel/hostname`']
   
   and my console now show me
   
   (airflow)celery --app airflow.providers.celery.executors.celery_executor.app 
inspect ping -d celery@`cat /proc/sys/kernel/hostname` || celery --app 
airflow.executors.celery_executor.app inspect ping -d celery@`cat 
/proc/sys/kernel/hostname`
   ->  celery@eeabae2c039a: OK
           pong
   
   1 node online.
   
   ### Operating System
   
   Red Hat Enterprise Linux release 9.8 (Plow)
   
   ### Deployment
   
   Docker-Compose
   
   ### Apache Airflow Provider(s)
   
   _No response_
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Official Helm Chart version
   
   Not Applicable
   
   ### Kubernetes Version
   
   not applicable
   
   ### Helm Chart configuration
   
   Not Applicable
   
   ### Docker Image customizations
   
   Not Applicable i have not changed docker-compose.yaml prior fixing the 
healthcheck
   
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to