2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 08:30:39 +00:00

perf: single worker in development install (#1392)

Most developers don't need 3 separate workers in development.  This changes procfile to use single worker to consume from all queues in development. 


Pros:
- Lighter development setups


Cons:
- Not "equivalent to production" - not required in most cases so eh. 

You can still edit procfile to start whatever process you want anyway.
This commit is contained in:
Ankush Menat 2022-11-24 15:29:34 +05:30 committed by GitHub
parent d198465228
commit 9c80f5d24f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,9 +11,7 @@ watch: bench watch
{% endif %}
{% if use_rq -%}
schedule: bench schedule
worker_short: bench worker --queue short 1>> logs/worker.log 2>> logs/worker.error.log
worker_long: bench worker --queue long 1>> logs/worker.log 2>> logs/worker.error.log
worker_default: bench worker --queue default 1>> logs/worker.log 2>> logs/worker.error.log
worker: bench worker 1>> logs/worker.log 2>> logs/worker.error.log
{% for worker_name, worker_details in workers.items() %}
worker_{{ worker_name }}: bench worker --queue {{ worker_name }} 1>> logs/worker.log 2>> logs/worker.error.log
{% endfor %}