Olivier Dony
75c9cf255a
[FIX] ir.cron: avoid passing the lock-holding cursor to the job, as many batch jobs need to commit/rollback
...
Passing a dedicated cursor to the cron job is necessary to
avoid spurious commit/rollbacks releasing the cron lock on
the job row - causing duplicate executions in some cases.
lp bug: https://launchpad.net/bugs/1086396 fixed
bzr revid: odo@openerp.com-20121222011355-te4osnedofct0p1u
2012-12-22 02:13:55 +01:00
Cecile Tonglet
ad8b76de53
[MERGE] From trunk (second time)
...
bzr revid: cto@openerp.com-20121217144753-1rboqdw01h8yrehj
2012-12-17 15:47:53 +01:00
Cecile Tonglet
5f0070dcb6
[FIX] Remove unused imports and fix some imports that doesn't use the new namespace
...
bzr revid: cto@openerp.com-20121217143029-e9ki4ftwihq7pdme
2012-12-17 15:30:29 +01:00
Cecile Tonglet
5179507e22
[MERGE] Branch updated with trunk
...
bzr revid: cto@openerp.com-20121217125902-idtlh4ztyah17bdn
2012-12-17 13:59:02 +01:00
Xavier Morel
5155f30303
[REM] unused local variables
...
bzr revid: xmo@openerp.com-20121214132533-aafgbov19ckb9ksp
2012-12-14 14:25:33 +01:00
Vo Minh Thu
509a084e79
[IMP] use the openerp namespace.
...
bzr revid: vmt@openerp.com-20121210152723-mv4dykfu6ip1991h
2012-12-10 16:27:23 +01:00
Antony Lesuisse
42f292af93
cron cleanup, back to the Kernighan KISS roots 1min poll time, rely only on database, multiprocess/multiserver ready.
...
Nota: If we replace sequence signaling for cache invalidation with pg
listen/notify in the future, we will use the same mechanism for more accurate
cron timing.
bzr revid: al@openerp.com-20121209170447-zs0k3jazokylwvar
2012-12-09 18:04:47 +01:00
Xavier Morel
5bd939f0ac
[REM] useless intermediate lambdas in default values
...
bzr revid: xmo@openerp.com-20121102094705-6vcutz0bv4dc0jkl
2012-11-02 10:47:05 +01:00
Antony Lesuisse
4679680dba
manual merge of multicorn
...
bzr revid: al@openerp.com-20120922105107-q02ogtsfudphzkl6
2012-09-22 12:51:07 +02:00
Vo Minh Thu
5341b5f445
[IMP] logging: _logger.log(DEBUG) replaced by _logger.debug().
...
bzr revid: vmt@openerp.com-20120202092105-mfufuv97h8zrc2n7
2012-02-02 10:21:05 +01:00
Antony Lesuisse
91ef8c1c51
[FIX] review according to xmo :)
...
bzr revid: al@openerp.com-20120201235604-tr5iq676pzk8bi1m
2012-02-02 00:56:04 +01:00
Vo Minh Thu
48adfc8ff3
[IMP] openerp.netsvc: _logger with fully qualified module name.
...
bzr revid: vmt@openerp.com-20120124162245-sz7iujhxalwzroqt
2012-01-24 17:22:45 +01:00
Vo Minh Thu
f5db1d10ec
[IMP] openerp.addons.base: _logger with fully qualified module name.
...
bzr revid: vmt@openerp.com-20120124114730-24m0ftu1wbowg8a0
2012-01-24 12:47:30 +01:00
Antony Lesuisse
41218715bd
[FIX] cron mktime should be timegm
...
bzr revid: al@openerp.com-20111227223944-jk1humfvon1kqw59
2011-12-27 23:39:44 +01:00
Olivier Dony
5252e02cc5
[IMP] ir.cron.write/unlink: try NOWAIT lock to avoid blocking user operations during cron executions
...
bzr revid: odo@openerp.com-20110929001858-3v5ffsjela8y71qc
2011-09-29 02:18:58 +02:00
Olivier Dony
a9a50c2cc8
[FIX] ir_cron: compare timestamps always as UTC (as of v6.1)
...
bzr revid: odo@openerp.com-20110928224611-51eqnelo7mqomnwh
2011-09-29 00:46:11 +02:00
Olivier Dony
f2b9b58fd3
[IMP] cron: misc renaming and minor changes to improve reviewability ;-)
...
bzr revid: odo@openerp.com-20110928224429-up0k4ts3cdks1u2s
2011-09-29 00:44:29 +02:00
Vo Minh Thu
ade53b64c7
[IMP] cron: minor typo and comments.
...
bzr revid: vmt@openerp.com-20110808152908-1v12zc7elj03mtnf
2011-08-08 17:29:08 +02:00
Vo Minh Thu
a7e6a5bd48
[IMP] cron: moved testing code to some other file.
...
That code is useful for manual testing but is not called by the normal testing framework.
Its import is commented out.
bzr revid: vmt@openerp.com-20110808152024-23plfx82d35ok8ua
2011-08-08 17:20:24 +02:00
Vo Minh Thu
711554a4db
[IMP] cron: comments, docstrings, help messages.
...
bzr revid: vmt@openerp.com-20110808145931-ms0vpvg8uj72kyd0
2011-08-08 16:59:31 +02:00
Vo Minh Thu
ed1b2a92ca
[IMP] cron: comments and docstrings.
...
bzr revid: vmt@openerp.com-20110808130502-htps768jts63m9sx
2011-08-08 15:05:02 +02:00
Vo Minh Thu
faf2863a35
[IMP] cron: bracketed the jobs heap/dict with a lock.
...
bzr revid: vmt@openerp.com-20110715113845-zokj6cf6z0adj6h4
2011-07-15 13:38:45 +02:00
Vo Minh Thu
ed910b5898
[IMP] cron: added some code to test the new threaded jobs, should be moved elsewhere.
...
bzr revid: vmt@openerp.com-20110715094051-7z5v2xu91uid0jtm
2011-07-15 11:40:51 +02:00
Vo Minh Thu
4b8708fb10
[IMP] cron: minor cleaning.
...
bzr revid: vmt@openerp.com-20110714151113-v07yr2rneqafbnni
2011-07-14 17:11:13 +02:00
Vo Minh Thu
2f115c21aa
[IMP] cron: moved netsvc.Agent to openerp.cron.
...
bzr revid: vmt@openerp.com-20110714143209-bebn6xg91fcrxro9
2011-07-14 16:32:09 +02:00
Vo Minh Thu
32e830eb99
[IMP] cron: removed unnecessary multi-tasks per db in Agent, some cleaning.
...
bzr revid: vmt@openerp.com-20110714110809-sgsoev9i24589sn8
2011-07-14 13:08:09 +02:00
Vo Minh Thu
6f5eb6b91e
[IMP] ir.cron: continued implementing multithreaded cron:
...
- use a lock to protect the number of threads
- the not task[0] condition in reschedule_in_advance is not really correct
- but we have to remove the Agent in favor of a real cron master thread.
bzr revid: vmt@openerp.com-20110713134933-gmfwddot50a3ib4k
2011-07-13 15:49:33 +02:00
Vo Minh Thu
46f8243877
[IMP] ir_cron: reschedule the main cron thread if a worker takes too long.
...
bzr revid: vmt@openerp.com-20110707135843-z38f4r8s373ctnd2
2011-07-07 15:58:43 +02:00
Vo Minh Thu
b9e581303b
[IMP] ir_cron: each job in its own thread, first stab.
...
bzr revid: vmt@openerp.com-20110705170053-q3xgeoq21oc7dh8h
2011-07-05 19:00:53 +02:00
Vo Minh Thu
5ae5809dab
[REF] ir_cron: use DEBUG instead of DEBUG_RPC (as done previously).
...
bzr revid: vmt@openerp.com-20110628153148-hkxh5n1ct4y8k6z3
2011-06-28 17:31:48 +02:00
Vo Minh Thu
78986ba9d2
[REF] netsvc+ir_cron: removed unnecessary getLogger, removed double call to f/dispatch.
...
bzr revid: vmt@openerp.com-20110621083011-53toyp3lsa4rxs39
2011-06-21 10:30:11 +02:00
Vo Minh Thu
73a97f3c3b
[YEAH]
...
bzr revid: vmt@openerp.com-20110620153347-zwc42po38cysj5p8
2011-06-20 17:33:47 +02:00
Vo Minh Thu
ca91b75f21
[IMP] netsvc+ir_cron: display the execution time in debug_rpc.
...
bzr revid: vmt@openerp.com-20110620152615-kyl8s7z6we2or1yw
2011-06-20 17:26:15 +02:00
Vo Minh Thu
7dbb430fba
[MERGE] ir_cron: expose the method (that can be extended) called when an exception occurs on a callback.
...
bzr revid: vmt@openerp.com-20110524110707-hfdulmtxprhxx6bw
2011-05-24 13:07:07 +02:00
Jacques-Etienne Baudoux
56b794c644
[FIX] removed unused imports, unused depth definition, changed indent definition
...
bzr revid: jba@openerp.com-20110513133514-zojsknaqrybu347e
2011-05-13 15:35:14 +02:00
Jacques-Etienne Baudoux
1ab0987803
[IMP] logging of rpc calls and cron jobs
...
lp bug: https://launchpad.net/bugs/781190 fixed
bzr revid: jba@openerp.com-20110511160707-lsf87msknw7rngus
2011-05-11 18:07:07 +02:00
Olivier Dony
2621b707e0
[MERGE] merged latest fixes from 6.0 branch up to rev 3348
...
Rev 3348 is odo@openerp.com-20110221101549-vp0ha2g91yl30cmk .
bzr revid: odo@openerp.com-20110221103235-6tdy5tpb6zvkbzs3
2011-02-21 11:32:35 +01:00
Vo Minh Thu
f8572e5c60
[IMP] openerp python module.
...
- Some logging code moved from netsvc.py to loglevels.py
- Changed imports to use the new openerp module
- config and netsvc initialization calls move to openerp-server.py
- Moved openerp-server.py outside the old bin directory
- Some imports in tools moved inside the methods to break mutual-dependencies
bzr revid: vmt@openerp.com-20110207125723-ooee7d7ng5elmkso
2011-02-07 13:57:23 +01:00