Christophe Simonis
31f2a1bc38
[MERGE] forward port of branch 7.0 up to 1c0bc7c
2015-06-30 12:47:27 +02:00
Martin Trigaux
1c0bc7cc16
[FIX] server: backport of 3940a096
on psutil
...
psutil 3.0 removed get_momory_info method
create wrapper method for backward compatibility
2015-06-29 16:09:42 +02:00
Christophe Simonis
b7f9f4ade0
[MERGE] forward port of branch 7.0 up to e8e3f75
2015-06-18 19:29:47 +02:00
Olivier Dony
e8e3f75727
[FIX] workers: process signals during graceful shutdown to allow force shutdown
...
Required after e17844c946
which
enabled graceful shutdown of workers, including the cron worker.
The latter may typically be busy on long-running tasks that
will not be aborted by a simple graceful shutdown request.
A typical shutdown sequence initiated by a daemon manager such
as start-stop-daemon will involve multiple SIGTERM signals to
ensure the process really stops in a timely manner.
This was not possible after e17844c946
if any cron worker was busy.
2015-06-18 19:18:03 +02:00
Christophe Simonis
885565968f
[MERGE] forward port of branch 7.0 up to d566558
2015-06-15 16:24:11 +02:00
Laurent Mignon (ACSONE)
e17844c946
[FIX] server: graceful shutdown must send SIGINT instead of SIGTERM to workers
...
Workers do not specifically handle SIGTERM so it can be used to
force quit them, but the graceful shutdown is triggered by SIGINT.
Closes #6998
2015-06-12 16:11:59 +02:00
Christophe Simonis
9323f2b4c7
[MERGE] forward port of branch 7.0 up to a091de8
2015-04-20 12:10:48 +02:00
Xavier Morel
d89af0dad3
[FIX] over-eager merge b270e4f
...
Extract dropping of connection from exp_drop (as in 8.0), call it from
relevant database-alteration functions (drop, rename, duplicate)
2015-01-12 16:45:27 +01:00
Maxime Chambreuil
fa515607cb
[FIX] Issue #4424
2014-12-25 14:57:46 -05:00
Martin Zlámal
fc9fc3e0b8
[FIX] common.py: missing import
...
It was not possible to call "about" function via remote control
(XML-RPC), because it contains string translation without import.
2014-10-06 12:28:45 +02:00
Denis Ledoux
7e9dfa774e
[FIX] server: db service, drop connection on drop
...
On database drop or rename, close the existing sql connections
2014-06-26 13:41:29 +02:00
Christophe Simonis
631e309554
[FIX] server: log network errors via logging. ignore EPIPE
2014-06-22 13:21:34 +02:00
Thibault Delavallée
0f9917c9a3
[FIX] service: wrapper: fixed context fetching. Indeed call_kw set its context
...
in kwargs of kwargs, leading to a kwargception.
bzr revid: tde@openerp.com-20140507110637-qlj1rj8lrcpkejf6
2014-05-07 13:06:37 +02:00
Christophe Simonis
4335ff0712
[FIX] force suppression of pidfile at exit of openerp.
...
[IMP] only write/delete pidfile in non-evented mode
[FIX] check if evented mode before checking in worker mode when starting server service
bzr revid: chs@openerp.com-20140404154658-6x5rxyq12guej43q
2014-04-04 17:46:58 +02:00
Denis Ledoux
67866db5b6
[MERGE] Forward-port of latest saas-2 bugfixes, up to rev. 5015 dle@openerp.com-20140221104908-7ytdg6xkxaza05o4
...
bzr revid: dle@openerp.com-20140220132700-hhc1nsu25j1ye257
bzr revid: mat@openerp.com-20140220150028-p6l0vnwa5q18uxiu
bzr revid: dle@openerp.com-20140221105500-t7jg037uusdloigl
2014-02-21 11:55:00 +01:00
Denis Ledoux
1b3925fadf
[FIX] service: wrong namespace for using tools
...
bzr revid: dle@openerp.com-20140220132548-fkw19c45mbnejgld
2014-02-20 14:25:48 +01:00
Martin Trigaux
c83247c38b
[MERGE] Forward-port of latest saas-2 bugfixes, up to rev.5012 revid:mat@openerp.com-20140219134943-60ssztc01cxdtk09
...
bzr revid: mat@openerp.com-20140219140617-na0q47yaloblb67i
2014-02-19 15:06:17 +01:00
Martin Trigaux
e635ebe6c1
[MERGE] Forward-port of latest 7.0 bugfixes, up to rev. 5238 revid:launchpad_translations_on_behalf_of_openerp-20140219053940-dvi4g7ajttoj6h9k
...
bzr revid: mat@openerp.com-20140219134943-60ssztc01cxdtk09
2014-02-19 14:49:43 +01:00
Martin Trigaux
c0308d7522
[MERGE] [FIX] databases list: allow to have entries with unicode char in the database list (opw 589765)
...
This does not allow to use a database with unicode to run openerp but does not fail (was getting an empty list of existing databases)
bzr revid: mat@openerp.com-20140214144444-0tjcz14rhlw94i50
2014-02-14 15:44:44 +01:00
Christophe Simonis
a69f789b41
[MERGE] forward port of branch 7.0 up to revid 5224 chs@openerp.com-20140206105141-7e8bv8ordqqsswh7
...
bzr revid: dle@openerp.com-20140205105045-j95kduyjiq83e57z
bzr revid: dle@openerp.com-20140114173613-ruxye1m7fxtcjfim
bzr revid: dle@openerp.com-20140116161158-u95vcs3os4tk2zob
bzr revid: dle@openerp.com-20140121172737-gzawfi3ssg7xifef
bzr revid: chs@openerp.com-20140129094554-c3abc8x3qz9mpszr
bzr revid: chs@openerp.com-20140129140159-9vwkpr078shoonum
bzr revid: chs@openerp.com-20140206110220-myn57cryam1y4k9v
2014-02-06 12:02:20 +01:00
Christophe Simonis
46cbf22efb
[FIX] allow to use "dbname" as keyword in routes
...
bzr revid: chs@openerp.com-20140131163139-89lfordriamw9i1w
2014-01-31 17:31:39 +01:00
Christophe Simonis
378c908d4c
[MERGE] forward port of branch saas-2 up to revid 5006 chs@openerp.com-20140129140159-9vwkpr078shoonum
...
bzr revid: chs@openerp.com-20140129094847-4rsg0kjio0ed0rjk
bzr revid: chs@openerp.com-20140129141002-4p8fttm8ii0ogsse
2014-01-29 15:10:02 +01:00
Christophe Simonis
23778030cd
[FIX] forbid dropping templates databases
...
bzr revid: chs@openerp.com-20140129103538-qbm054m29y5r4hu4
2014-01-29 11:35:38 +01:00
Antony Lesuisse
9248a2db18
[FIX] multiprocess mode, empty the cursor pool before forking
...
bzr revid: al@openerp.com-20140122221525-hify023pk5i8d0jm
2014-01-22 23:15:25 +01:00
Stephane Wirtel
552c76c8b2
[REF] Use the contextlib.closing function instead of a couple of try/catch for
...
the release of the database cursor.
bzr revid: stw@openerp.com-20140109093258-vmr1a3gaxruo0psp
2014-01-09 10:32:58 +01:00
Christophe Simonis
d26e253edd
[IMP] dumpstack dumps greenlets when running in evented mode.
...
(forward port lost during previous commit)
bzr revid: chs@openerp.com-20131125155956-x92vq9w4r9ov4vcc
2013-11-25 16:59:56 +01:00
Antony Lesuisse
ff9e439733
[FIX] fcntl not needed on windows
...
bzr revid: al@openerp.com-20131015013700-eo0y09ft0p3w0fwe
2013-10-15 03:37:00 +02:00
Antony Lesuisse
d2eb959710
[FIX] ensure the use the registry signaling for registries loaded with -d
...
bzr revid: al@openerp.com-20131013021322-5ej7ovpcrf7ilnn5
2013-10-13 04:13:22 +02:00
Antony Lesuisse
a3fffe3b15
[REM] chorus on multiprocessing cron, it doesnt really helps
...
bzr revid: al@openerp.com-20131010231628-b81uhmhg14aj85tq
2013-10-11 01:16:28 +02:00
Antony Lesuisse
780ae08294
[IMP] add an easier to use XML-RPC faultCode compliant protocol
...
remove the /openerp/* routes, they were never used because the protocol was too
different from the historical /xmlrpc/ routes. Instead we introduce a
/xmlrpc/2/ route identical to /xmlrpc/ with the only difference that it returns
int faultCodes making it compliant with the XML-RPC specification.
bzr revid: al@openerp.com-20131006102131-707kxc9zyd1mvlps
2013-10-06 12:21:31 +02:00
Antony Lesuisse
156094df3d
[FIX] preliminary code for socket activation, to avoid connection refused during restart
...
bzr revid: al@openerp.com-20131005235639-vifvbhu4o17lf780
2013-10-06 01:56:39 +02:00
Antony Lesuisse
e6b18fc7aa
rename server
...
bzr revid: al@openerp.com-20131005221829-a18vx5ag6ef4ufee
2013-10-06 00:18:29 +02:00
Antony Lesuisse
c52df72706
fix signal name
...
bzr revid: al@openerp.com-20131005215821-r60pgkgsrp1lo2ug
2013-10-05 23:58:21 +02:00
Antony Lesuisse
0a75a6b5ff
simplier autoreload working
...
bzr revid: al@openerp.com-20131005212240-5lp8tgwukeg5wwdq
2013-10-05 23:22:40 +02:00
Antony Lesuisse
65c0538a83
autoreload, first working version for both python and data, still wip
...
bzr revid: al@openerp.com-20130909230553-jn26ue5qenv0sd3p
2013-09-10 01:05:53 +02:00
Antony Lesuisse
3bc9a499d4
add signals to increase/decrease number of workers
...
bzr revid: al@openerp.com-20130909201706-sllijtol7p6mi5nr
2013-09-09 22:17:06 +02:00
Antony Lesuisse
2a6d0299d9
revert to use a separate executable for gevent, add --dev option
...
bzr revid: al@openerp.com-20130909200825-sm5c3invmg7tt70j
2013-09-09 22:08:25 +02:00
Stephane Wirtel
093dec2ab0
[FIX] Add the platform lib
...
[IMP] Log when the Long Polling Service is running
bzr revid: stw@openerp.com-20130909131024-23an5cvt1qaa90su
2013-09-09 15:10:24 +02:00
Antony Lesuisse
12580e690a
[IMP] openerp threaded, gevent, prefork service cleanup
...
- unify signal handling
- unify start and stop
no new feature yet, it paves the way for
- developement mode auto reload
- graceful restart on HUP
- multiprocessing and gevent on windows
bzr revid: al@openerp.com-20130908173535-xomt5w7xmqtwkmyy
2013-09-08 19:35:35 +02:00
Martin Trigaux
122f0aa9b3
[FIX] workerst: revert commit 4930, remove useless loop and if condition always validated
...
bzr revid: mat@openerp.com-20130806094222-w61oolrjo66ulg3n
2013-08-06 11:42:22 +02:00
Martin Trigaux
f47ac59b38
[IMP] workers: remove unused code, _acquire_job does not return any value
...
lp bug: https://launchpad.net/bugs/1193399 fixed
bzr revid: mat@openerp.com-20130806091032-5w6km2pmbl20zicl
2013-08-06 11:10:32 +02:00
Christophe Simonis
634fef80ef
[IMP] WorkerCron: make the cron workers not all starting at the first database. Better repartition of work
...
[IMP] WorkerCron: renice process
Backport of commits 4891 chs@openerp.com-20130701120345-4687avu7re5pw6sf and 4892 chs@openerp.com-20130701125548-sgcaf71avwpleml1
of saas-1 branch
bzr revid: chs@openerp.com-20130724083454-fvmcm8be1ztezleg
2013-07-24 10:34:54 +02:00
Christophe Simonis
5a58a48ef5
[MERGE] forward port of branch saas-1 up to revid 4893 chs@openerp.com-20130701153735-xnbb8zauabf1k63u
...
bzr revid: chs@openerp.com-20130702144745-763n9cdphkppshxl
2013-07-02 16:47:45 +02:00
Christophe Simonis
955eaca4fa
[FIX] multicorn: terminate long-polling process via SIGKILL
...
bzr revid: chs@openerp.com-20130701153735-xnbb8zauabf1k63u
2013-07-01 17:37:35 +02:00
Christophe Simonis
ac8dc26c65
[IMP] WorkerCron: renice process
...
bzr revid: chs@openerp.com-20130701125548-sgcaf71avwpleml1
2013-07-01 14:55:48 +02:00
Christophe Simonis
ad8fcbffa2
[IMP] WorkerCron: make the cron workers not all starting at the first database. Better repartition of work
...
bzr revid: chs@openerp.com-20130701120345-4687avu7re5pw6sf
2013-07-01 14:03:45 +02:00
Christophe Simonis
a61e7cb0c8
[MERGE] forward port of branch saas-1 up to revid 4887 chs@openerp.com-20130612153934-qyp6pb3bc4za4taf
...
bzr revid: chs@openerp.com-20130613172414-dln3g4j0ykcwaa02
bzr revid: chs@openerp.com-20130613173900-xl7rh321nnw2b04b
2013-06-13 19:39:00 +02:00
Christophe Simonis
180e6e41d8
[FIX] long polling process: strip arguments
...
bzr revid: chs@openerp.com-20130612153934-qyp6pb3bc4za4taf
2013-06-12 17:39:34 +02:00
Christophe Simonis
6f170ec732
[MERGE] forward port of branch 7.0 up to revid 5006 chs@openerp.com-20130612151912-m19okjsdkjo12qnt
...
bzr revid: chs@openerp.com-20130612152826-j9sj42ten9mic8s0
2013-06-12 17:28:26 +02:00
Christophe Simonis
e383386a79
[FIX] correct stripping of arguments when _reexec() OpenERP
...
bzr revid: chs@openerp.com-20130612151912-m19okjsdkjo12qnt
2013-06-12 17:19:12 +02:00