Problem with Flask+celery+redis deployment on EB and ElastiCache

0

Hello, I am currently trying to deploy an app on Elastic Beanstalk with some background task with celery and Redis as Broker. In my research of how to do it I followed some recommendations given at:

https://stackoverflow.com/questions/30424167/deploying-flask-app-that-uses-celery-and-redis-to-aws-elastic-beanstalk-or-ec2

The deployment of the App works without problems, but the connection with ElastiCache with Redis is not working, the application send the task to the worker, but I don't know why is not working. I followed all the steps and configured all the things required but it's not working. Here I add some logs eb logs that helps, but I dont know how to fix it.

2023/07/26 22:28:10.294633 [INFO] Executing instruction: RunConfigDeployPostDeployHooks
2023/07/26 22:28:10.294695 [INFO] Executing platform hooks in .platform/confighooks/postdeploy/
2023/07/26 22:28:10.294722 [INFO] The dir .platform/confighooks/postdeploy/ does not exist
2023/07/26 22:28:10.294726 [INFO] Finished running scripts in /var/app/current/.platform/confighooks/postdeploy
2023/07/26 22:28:10.294732 [INFO] Executing cleanup logic
2023/07/26 22:28:10.294839 [INFO] CommandService Response: {"status":"SUCCESS","api_version":"1.0","results":[{"status":"SUCCESS","msg":"Engin
e execution has succeeded.","returncode":0,"events":[{"msg":"Instance deployment successfully generated a 'Procfile'.","timestamp":16904104814
57,"severity":"INFO"},{"msg":"Instance deployment completed successfully.","timestamp":1690410490294,"severity":"INFO"}]}]}

2023/07/26 22:28:10.295013 [INFO] Platform Engine finished execution on command: config-deploy

In my local machine the app works without problems. Also, I tried to increase idle Timeout for the LoadBalancer through .ebextensions files, but any changes works on it. Those are major problems that searching I can't be able to find an answer. Any help will be grateful. I share the repository of the project if it's need it some more information of the App. Repo.

Roberth
preguntada hace 10 meses95 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas