Celeryworker is not working

bakhti-devTRIAL

5 months ago

Hi i do not know why but my celeryworker is not working

Starting Container

/usr/local/lib/python3.11/site-packages/celery/platforms.py:829: SecurityWarning: You're running the worker with superuser privileges: this is

absolutely not recommended!

Please specify a different user using the --uid option.

User information: uid=0 euid=0 gid=0 egid=0

warnings.warn(SecurityWarning(ROOT_DISCOURAGED.format(

-------------- celery@d1a2ada05599 v5.4.0 (opalescent)

--- * -----

-- * ---- Linux-6.1.0-9-cloud-amd64-x86_64-with-glibc2.36 2024-12-11 09:02:15

  • *** --- * ---

  • ** ---------- [config]

  • ** ---------- .> app: a_core:0x7f90a3641310

  • ** ---------- .> transport: redis://default:**@autorack.proxy.rlwy.net:11356//

  • ** ---------- .> results:

  • *** --- * --- .> concurrency: 32 (prefork)

-- * ---- .> task events: ON

--- * -----

-------------- [queues]

            .> celery           exchange=celery(direct) key=celery

[tasks]

. countto10

. send_newsletter

I do not know is it good to send this for you. but i can not fix it)

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

1 Replies

5 months ago

Hello,

You need to set the concurrency to 1 -

https://docs.celeryq.dev/en/v5.4.0/userguide/workers.html#concurrency

If you look at your activity logs you can see that celery was killed because it used too much memory.