celery-supervisor.conf 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ; ===============================
  2. ; ckan celeryd supervisor example
  3. ; ===============================
  4. ; symlink or copy this file to /etc/supervisr/conf.d
  5. ; change the path/to/virtualenv below to the virtualenv ckan is in.
  6. [program:celery-priority]
  7. ; Full Path to executable, should be path to virtural environment,
  8. ; Full path to config file too.
  9. command=/home/ckan/.virtualenvs/ckan/bin/paster --plugin=ckanext-archiver celeryd2 run priority --config=/etc/ckan/prod.ini
  10. ; user that owns virtual environment.
  11. user=ckan
  12. numprocs=1
  13. stdout_logfile=/var/log/ckan/celeryd-priority.log
  14. stderr_logfile=/var/log/ckan/celeryd-priority.log
  15. autostart=true
  16. autorestart=true
  17. startsecs=10
  18. ; Need to wait for currently executing tasks to finish at shutdown.
  19. ; Increase this if you have very long running tasks.
  20. stopwaitsecs = 600
  21. ; if rabbitmq is supervised, set its priority higher
  22. ; so it starts first
  23. priority=998
  24. [program:celery-bulk]
  25. ; Full Path to executable, should be path to virtural environment,
  26. ; Full path to config file too.
  27. command=/home/ckan/.virtualenvs/ckan/bin/paster --plugin=ckanext-archiver celeryd2 run bulk --config=/etc/ckan/prod.ini
  28. ; user that owns virtual environment.
  29. user=ckan
  30. numprocs=1
  31. stdout_logfile=/var/log/ckan/celeryd-bulk.log
  32. stderr_logfile=/var/log/ckan/celeryd-bulk.log
  33. autostart=true
  34. autorestart=true
  35. startsecs=10
  36. ; Need to wait for currently executing tasks to finish at shutdown.
  37. ; Increase this if you have very long running tasks.
  38. stopwaitsecs = 600
  39. ; if rabbitmq is supervised, set its priority higher
  40. ; so it starts first
  41. priority=998