To solve the problem, you need do a dummy call of strptime before start a thread.
#dummy call datetime.strptime('2012-01-01', '%Y-%m-%d') #start thread task_thread = threading.Thread(target=self._run_job, name=job['name'], args=(task_cr, job, now))
This is a python bug, strptime dont work fine with threading, all that explain on python bug report.
The only one impact is : No more crash. the dummy call not stored in any variable, this only initialise the datetime.strptime.
To solve the problem, you need do a dummy call of strptime before start a thread.
#dummy call strptime( '2012-01- 01', '%Y-%m-%d') Thread( target= self._run_ job, name=job['name'], args=(task_cr, job, now))
datetime.
#start thread
task_thread = threading.
This is a python bug, strptime dont work fine with threading, all that explain on python bug report.
The only one impact is : No more crash. the dummy call not stored in any variable, this only initialise the datetime.strptime.