gunicorn cpu_time_limit setting generates error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Undecided
|
OpenERP Publisher's Warranty Team |
Bug Description
When setting the gunicorn cpu_time_limit setting in the config file the following error is generated:
2012-05-10 09:11:54,002 14215 ERROR ? gunicorn.error: Error handling request
Traceback (most recent call last):
File "/usr/lib/
self.
File "/srv/erp-
resource.
TypeError: unsupported operand type(s) for +: 'float' and 'str'
The config file setting was:
cpu_time_limit = 180
The code needs to convert the setting from the config file from a string to a float.
Related branches
- Vo Minh Thu: Pending requested
-
Diff: 12 lines (+2/-0)1 file modifiedopenerp/tools/config.py (+2/-0)
Changed in openobject-server: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openobject-server: | |
status: | New → Confirmed |
The merge above did not actually resolve the issue, the load() method needs to use the new code, not bypass it modifying the options dictionary directly.