911 - Season 5
Quality : HD Screencaptures
Amount : 16939 files
Resolution : 1280x720px
- Please like/reblog if using!
19 notes
·
View notes
Celery: WorkerLostError: Worker exited prematurely: signal 9 (SIGKILL)
I use Celery with RabbitMQ in my Django app (on Elastic Beanstalk) to manage background tasks and I daemonized it using Supervisor.The problem now, is that one of the period task that I defined is failing (after a week in which it worked properly), the error I've got is:
[01/Apr/2014 23:04:03] [ERROR] [celery.worker.job:272] Task clean-dead-sessions[1bfb5a0a-7914-4623-8b5b-35fc68443d2e] raised unexpected: WorkerLostError('Worker exited prematurely: signal 9 (SIGKILL).',)Traceback (most recent call last): File "/opt/python/run/venv/lib/python2.7/site-packages/billiard/pool.py", line 1168, in mark_as_worker_lost human_status(exitcode)),WorkerLostError: Worker exited prematurely: signal 9 (SIGKILL).
All the processes managed by supervisor are up and running properly (supervisorctl status says RUNNNING).
I tried to read several logs on my ec2 instance but no one seems to help me in finding out what is the cause of the SIGKILL. What should I do? How can I investigate?
These are my celery settings:
CELERY_TIMEZONE = 'UTC'CELERY_TASK_SERIALIZER = 'json'CELERY_ACCEPT_CONTENT = ['json']BROKER_URL = os.environ['RABBITMQ_URL']CELERY_IGNORE_RESULT = TrueCELERY_DISABLE_RATE_LIMITS = FalseCELERYD_HIJACK_ROOT_LOGGER = False
And this is my supervisord.conf:
[program:celery_worker]environment=$env_variablesdirectory=/opt/python/current/appcommand=/opt/python/run/venv/bin/celery worker -A com.cygora -l info --pidfile=/opt/python/run/celery_worker.pidstartsecs=10stopwaitsecs=60stopasgroup=truekillasgroup=trueautostart=trueautorestart=truestdout_logfile=/opt/python/log/celery_worker.stdout.logstdout_logfile_maxbytes=5MBstdout_logfile_backups=10stderr_logfile=/opt/python/log/celery_worker.stderr.logstderr_logfile_maxbytes=5MBstderr_logfile_backups=10numprocs=1[program:celery_beat]environment=$env_variablesdirectory=/opt/python/current/appcommand=/opt/python/run/venv/bin/celery beat -A com.cygora -l info --pidfile=/opt/python/run/celery_beat.pid --schedule=/opt/python/run/celery_beat_schedulestartsecs=10stopwaitsecs=300stopasgroup=truekillasgroup=trueautostart=falseautorestart=truestdout_logfile=/opt/python/log/celery_beat.stdout.logstdout_logfile_maxbytes=5MBstdout_logfile_backups=10stderr_logfile=/opt/python/log/celery_beat.stderr.logstderr_logfile_maxbytes=5MBstderr_logfile_backups=10numprocs=1
Edit 1
After restarting celery beat the problem remains.
Edit 2
Changed killasgroup=true to killasgroup=false and the problem remains.
https://codehunter.cc/a/django/celery-workerlosterror-worker-exited-prematurely-signal-9-sigkill
0 notes
Konser Salute Akan Diselenggarakan 9 Februari 2019
Konser Salute Akan Diselenggarakan 9 Februari 2019
Sinar Mas Land melalui PT Sinar Penata Acara berkerjasama dengan Erwin Gutawa, seorang komposer terkemuka di Indonesia dan Bank Bukopin sebagai Co Sponsor akan menggelar Konser Salute di Indonesia Convention Exhibition (ICE) BSD City pada 9 Februari 2019 nanti. Di pilihnya ICE BSD City karena ICE BSD City telah menjadi pilihan venuefavorit untuk menggelar berbagai acara, baik konser, meeting,…
View On WordPress
0 notes
9-1-1 - Season 4
Quality : HD Screencaptures
Amount : 13489 files
Resolution : 1280x720px
- Please like/reblog if using!
16 notes
·
View notes
Evan Buckley Week
Day three: Character Development
Buck’s evolving relationship with Athena - from contempt to love
1x01, 3x10, 4x05, 4x10
Bonus:
836 notes
·
View notes