problems with workers in django app
cromos92
PROOP

2 years ago

I have a problem with the workers, after days they go offline, then I restart my app and they are online again

18 Replies

2 years ago

are there any error logs?


cromos92
PROOP

2 years ago

nope the last log
24-07-08 15:06:56,299: WARNING/ForkPoolWorker-5] Producto MLC1499816993 está under_review.

[2024-07-08 15:06:56,302: WARNING/ForkPoolWorker-4] Updated link ID 8387: Order ID MK23PDMNF8 to status approved.

[2024-07-08 15:06:56,526: WARNING/ForkPoolWorker-4] Updated link ID 4616: Order ID MK7KS80RR4 to status approved.

[2024-07-08 15:06:56,604: WARNING/ForkPoolWorker-5] Updated link ID 6998: Order ID MKJB96Y8N5 to status approved.

[2024-07-08 15:06:56,831: WARNING/ForkPoolWorker-4] Updated link ID 4583: Order ID MKX6TE3O4R to status approved.

[2024-07-08 15:06:57,236: WARNING/ForkPoolWorker-5] Updated link ID 7679: Order ID MK4X5X2RQL to status approved.

[2024-07-08 15:06:57,243: WARNING/ForkPoolWorker-4] Updated link ID 4662: Order ID MKQZ0CAP1G to status approved.

Stopping Container


cromos92
PROOP

2 years ago

I put this in settings
CELERYBROKERURL = os.environ["REDISURL"] CELERYRESULTBACKEND = os.environ["REDISURL"]

CELERYACCEPTCONTENT = ['json']
CELERYTASKSERIALIZER = 'json'
CELERYRESULTSERIALIZER = 'json'
CELERY_TIMEZONE = 'UTC'

CELERYWORKERMAXTASKSPERCHILD = 100 # Reiniciar el worker después de 100 tareas CELERYTASKACKSLATE = True # Acknowledge las tareas tarde para evitar la pérdida de tareas
CELERYWORKERPREFETCHMULTIPLIER = 1 # Controlar la cantidad de tareas que un worker puede prefetchear CELERYTASKTIMELIMIT = 3600 # Limitar el tiempo de ejecución de una tarea a 1 hora
but i dont know if its necesary


2 years ago

what do the memory metrics look like


cromos92
PROOP

2 years ago

Network egress

only has a big pick


2 years ago

I'm sorry but that doesn't answer the question


cromos92
PROOP

2 years ago

and
Disk usage

1259899647183290400


cromos92
PROOP

2 years ago

1259899746475315500


cromos92
PROOP

2 years ago

hi?


2 years ago

since upgrading to the hobby plan have you redeployed the worker service?


cromos92
PROOP

2 years ago

how do I do that


2 years ago

has the service for your worker redeployed since you have upgraded to the hobby plan


cromos92
PROOP

2 years ago

yes mm I think so because i use github so in the week I am up changes commits


cromos92
PROOP

2 years ago

so when i put a new commits all the services are redeploying


2 years ago

then this is an issue with the code or config, please add better logging so you can narrow down by the worker is exiting


cromos92
PROOP

2 years ago

mm how i do that


2 years ago

im sorry but we are not able to offer coding assistance here


cromos92
PROOP

2 years ago

thx i will try with code so


Loading...