Remove last worker patch. The problem was that the supervisor need a reread/update to active the new changes

This commit is contained in:
Bernat Brunet 2020-02-03 17:16:26 +01:00
parent 8ecc2d8d9d
commit 02261744be
2 changed files with 0 additions and 15 deletions

2
series
View File

@ -43,5 +43,3 @@ issue8860.diff # [stock_forecast] stock_forecast does not spread all the quantit
statement_of_account.diff # [account] Cumulate balance of previous fiscal years
issue9017.diff # [purchase] Doesn't copy product_suppliers when a template or a product is duplicated
worker.diff # [trytond] Add default vaules for the number of worker process to solve supervisor problme with the interger variables

View File

@ -1,13 +0,0 @@
diff --git a/trytond/commandline.py b/trytond/commandline.py
index 341326ef..c166747d 100644
--- a/trytond/trytond/commandline.py
+++ b/trytond/trytond/commandline.py
@@ -51,7 +51,7 @@ def get_parser_worker():
parser = get_parser_daemon()
parser.add_argument("--name", dest='name',
help="work only on the named queue")
- parser.add_argument("-n", dest='processes', type=int,
+ parser.add_argument("-n", dest='processes', default=1, type=int,
help="number of processes to use")
parser.add_argument("--max", dest='maxtasksperchild', type=int,
help="number of tasks a worker process before being replaced")