From 9c80f5d24f3e9a88531c7300f95ee7dc3839256d Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Thu, 24 Nov 2022 15:29:34 +0530 Subject: [PATCH] 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. --- bench/config/templates/Procfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bench/config/templates/Procfile b/bench/config/templates/Procfile index d9391087..899d1290 100644 --- a/bench/config/templates/Procfile +++ b/bench/config/templates/Procfile @@ -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 %}