Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install and configure celery & rabbitmq for periodic tasks #30

Open
1 task
dmpe opened this issue Nov 3, 2018 · 1 comment
Open
1 task

install and configure celery & rabbitmq for periodic tasks #30

dmpe opened this issue Nov 3, 2018 · 1 comment
Assignees
Labels

Comments

@dmpe
Copy link
Owner

dmpe commented Nov 3, 2018

#23

https://medium.com/@yehandjoe/celery-4-periodic-task-in-django-9f6b5a8c21c7
http://docs.celeryproject.org/en/latest/userguide/periodic-tasks.html
https://zapier.com/blog/async-celery-example-why-and-how/

  • Testing on adhoc date, to be executed via readme file
@dmpe dmpe closed this as completed Nov 3, 2018
@dmpe dmpe self-assigned this Nov 3, 2018
@dmpe dmpe reopened this Nov 3, 2018
@dmpe
Copy link
Owner Author

dmpe commented Nov 6, 2018

; ==================================
; celery worker supervisor example
; ==================================
; the name of your supervisord program
[program:projworker]

; Set full path to celery program if using virtualenv
command=/usr/local/bin/celery -A proj worker -l info

; The directory to your Django project
directory=/home/jm/b40re.git

; If supervisord is run as the root user, switch users to this UNIX user account before doing any processing.
;user=me

; Supervisor will start as many instances of this program as named by numprocs
numprocs=1

; Put process stdout output in this file stdout_logfile=/var/log/celery/proj_worker.log

; Put process stderr output in this file stderr_logfile=/var/log/celery/proj_worker.log

; If true, this program will start automatically when supervisord is started
autostart=true

; May be one of false, unexpected, or true. If false, the process will never be autorestarted. If unexpected, the process will be restart when the program exits with an exit code that is not one of the exit codes associated with this process’ configuration (see exitcodes). If true, the process will be unconditionally restarted when it exits, without regard to its exit code.
autorestart=true

; The total number of seconds which the program needs to stay running after a startup to consider the start successful.
startsecs=10

; Need to wait for currently executing tasks to finish at shutdown. ; Increase this if you have very long running tasks.
stopwaitsecs = 600 

; When resorting to send SIGKILL to the program to terminate it ; send SIGKILL to its whole process group instead, taking care of its children as well.
killasgroup=true

; if your broker is supervised, set its priority higher so it starts first
priority=998

@dmpe dmpe added the stage-3 label Nov 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant