-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtasks-config
101 lines (74 loc) · 3.73 KB
/
tasks-config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
this is the config files for celery
info on where to put them is available in this tutorial:
https://realpython.com/blog/python/asynchronous-tasks-with-django-and-celery/
# ; ==================================
# ; celery worker supervisor example
# ; ==================================
# ; the name of your supervisord program
# [program:django_backend]
# ; Set full path to celery program if using virtualenv
# command=/home/jeff/experiment-grant-scapie-mcscrapeface/django-backend/env/bin/celery worker -A project --loglevel=INFO
# ; The directory to your Django project
# directory=/home/jeff/experiment-grant-scapie-mcscrapeface/django-backend
# ; If supervisord is run as the root user, switch users to this UNIX user account
# ; before doing any processing.
# user=jeff
# ; 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/django_backend_worker.log
# ; Put process stderr output in this file
# stderr_logfile=/var/log/celery/django_backend_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
# ; ================================
# ; celery beat supervisor example
# ; ================================
# ; the name of your supervisord program
# [program:django_backend_beat]
# ; Set full path to celery program if using virtualenv
# command=/home/jeff/experiment-grant-scapie-mcscrapeface/django-backend/env/bin/celerybeat -A project --loglevel=INFO
# ; The directory to your Django project
# directory=/home/jeff/experiment-grant-scapie-mcscrapeface/django-backend
# ; If supervisord is run as the root user, switch users to this UNIX user account
# ; before doing any processing.
# user=jeff
# ; 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/django_backend_beat.log
# ; Put process stderr output in this file
# stderr_logfile=/var/log/celery/django_backend_beat.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
# ; if your broker is supervised, set its priority higher
# ; so it starts first
# priority=999