Somesh Khare(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-server/6.1-opw-581239-skh into 
lp:openobject-server/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/6.1-opw-581239-skh/+merge/131899

Hello Sir,

[FIX]ir_cron: Attribute Error _strptime occurred when more than one schedule 
action runs at the same time into the database.
Note: Traceback occurred rarely because strptime do not work correctly with 
threading.
Steps:
1. Open "Settings/Configuration/Scheduler/Scheduled Actions" menu and open 
"Update System Logs" and "Run Event Reminder" Action.
2. Change "Next Execution date" as eg: 10/29/2012 14:35:00 and Restart the 
Server.

As the Scheduled action executed system will give traceback in Server as,
Traceback (most recent call last):
  File "server/openerp/addons/base/ir/ir_cron.py", line 254, in 
_run_jobs_multithread
    next_call = calendar.timegm(time.strptime(next_call, 
DEFAULT_SERVER_DATETIME_FORMAT))
AttributeError: _strptime 

Kindly review the branch and share your views on it.

Thanks,
Somesh Khare
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/6.1-opw-581239-skh/+merge/131899
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/6.1-opw-581239-skh.
=== modified file 'openerp/addons/base/ir/ir_cron.py'
--- openerp/addons/base/ir/ir_cron.py	2012-04-02 12:01:58 +0000
+++ openerp/addons/base/ir/ir_cron.py	2012-10-29 13:07:12 +0000
@@ -240,7 +240,7 @@
                     if not acquired_lock:
                         # we're exiting due to an exception while acquiring the lot
                         task_cr.close()
-
+                datetime.strptime('2012-01-01', '%Y-%m-%d')
                 # Got the lock on the job row, now spawn a thread to execute it in the transaction with the lock
                 task_thread = threading.Thread(target=self._run_job, name=job['name'], args=(task_cr, job, now))
                 # force non-daemon task threads (the runner thread must be daemon, and this property is inherited by default)

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to