Git Product home page Git Product logo

Comments (8)

yosifkit avatar yosifkit commented on August 28, 2024

Your backgrounded task (sentry celery worker -B &) is just another celery worker and celery beat; and could break since there is not an init process in the container to monitor secondary process (ie not really the "docker way"). I am not sure if your plain celery containers are even working since that backgrounded task was a new celery worker and would thus make the warning go away.

It seems that there must be more happening with the celery embedded with sentry vs running plain celery with a redis url. Have you tried running the embedded celery in separate containers?

docker run -d --name log-analyser-celery-beat --link some-redis:redis sentry sentry celery beat
docker run -d --name log-analyser-celery-worker1 --link some-redis:redis sentry sentry celery worker

from docs.

aheuermann avatar aheuermann commented on August 28, 2024

The worker seems to also need postgres. I got it working using the following.

docker run -d --name celery-beat --link redis:redis --link postgres:postgres -e CELERY_BROKER_URL=redis://redis sentry sentry celery beat
docker run -d --name celery-worker1 --link redis:redis --link postgres:postgres -e CELERY_BROKER_URL=redis://redis sentry sentry celery worker

from docs.

yosifkit avatar yosifkit commented on August 28, 2024

@aheuermann, is there not a way to run plain celery workers (ie the celery image) or do they have to be celery that is included with sentry? What extra configuration is being done to them by sentry?

Also, you shouldn't need CELERY_BROKER_URL when using the embedded celery since it is setup in docker-links.conf.py.

from docs.

sivakumar-kailasam avatar sivakumar-kailasam commented on August 28, 2024

@yosifkit & @aheuermann both suggestions didn't work.

from docs.

aheuermann avatar aheuermann commented on August 28, 2024

@yosifkit I don't know much about celery (or the internals of sentry for that matter). I'm guessing it needs the sentry code packaged with it though as that is where the tasks are defined. Also, I found some celery config here.

from docs.

yosifkit avatar yosifkit commented on August 28, 2024

/cc @mattrobenolt, the new maintainer of the sentry image! 😄

from docs.

mattrobenolt avatar mattrobenolt commented on August 28, 2024

I'm going to be making this easier soon. :) So hang in there while we take over.

from docs.

mattrobenolt avatar mattrobenolt commented on August 28, 2024

If this is still an issue, reopen under https://github.com/getsentry/docker-sentry/issues

/cc @yosifkit can you close this? :)

from docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.