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?
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
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
2 years ago
I'm sorry but that doesn't answer the question
2 years ago
since upgrading to the hobby plan have you redeployed the worker service?
2 years ago
has the service for your worker redeployed since you have upgraded to the hobby plan
yes mm I think so because i use github so in the week I am up changes commits
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
2 years ago
im sorry but we are not able to offer coding assistance here

