'Dramatiq worker getting killed every often
I have started a dramatiq worker to do some task and after a point, it is just stuck and throws this below-mentioned error after some time.
[MainThread] [dramatiq.MainProcess] [CRITICAL] Worker with PID 53 exited unexpectedly (code -9). Shutting down...
What can be the potential reason for this to occur? Are System resources a constraint?
This queuing task is run inside a Kubernetes pod
Solution 1:[1]
Please check kernel logs (/var/log/kern.log and /var/log/kern.log.1) The Worker might be getting killed due to OOMKiller (OutOfMemory). To resolve this try to increase the memory if you are running in a docker or pod.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | anujs |