Opened 6 years ago
Last modified 6 years ago
#48 accepted task
run multiple workers in flask-RQ2
| Reported by: | zhangjr | Owned by: | zhangjr |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | component1 | Version: | |
| Keywords: | Cc: | ||
| Blocked By: | Blocking: | ||
| Parent ID: | Parent Tickets: | ||
| Estimated Number of Hours: | 0.0 | Add Hours to Ticket: | 0 |
| Billable?: | yes | Total Hours: | 0 |
Description
Subtickets (add)
Child Tickets
Change History (5)
comment:1 Changed 6 years ago by zhangjr
- Summary changed from run multiple workers in flask-rq2 to run multiple workers in flask-RQ2
comment:2 Changed 6 years ago by zhangjr
comment:3 Changed 6 years ago by zhangjr
- Owner changed from somebody to zhangjr
- Status changed from new to accepted
comment:4 Changed 6 years ago by zhangjr
edit supervisord.conf
supervisord -n
======
[supervisord]
[program:worker]
command=python worker.py
process_name=%(program_name)s-%(process_num)s
numprocs=20
directory=.
stopsignal=TERM
autostart=true
autorestart=true
======
comment:5 Changed 6 years ago by zhangjr
burst=True
Note: See
TracTickets for help on using
tickets.

probably, supervisor is required to launch multiple workers.
flask rq worker -n ${worker_name} ${queues}