为异步队列修改 supervisor 配置文件
This commit is contained in:
16
dockerfiles/oj_web_server/task_queue.conf
Normal file
16
dockerfiles/oj_web_server/task_queue.conf
Normal file
@@ -0,0 +1,16 @@
|
||||
[program:mq]
|
||||
|
||||
command=python manage.py runscript mq
|
||||
|
||||
directory=/code/
|
||||
user=root
|
||||
numprocs=1
|
||||
stdout_logfile=/code/log/mq.log
|
||||
stderr_logfile=/code/log/mq.log
|
||||
autostart=true
|
||||
autorestart=true
|
||||
startsecs=5
|
||||
|
||||
stopwaitsecs = 6
|
||||
|
||||
killasgroup=true
|
||||
Reference in New Issue
Block a user