--
Thanks,Dewey
You received this message because you are subscribed to the Google Groups "sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+...@googlegroups.com.
To post to this group, send email to sqlal...@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.
The contents of the full traceback was:
Traceback (most recent call last):
File "/opt/paysys/python/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
R = retval = fun(*args, **kwargs)
File "/opt/paysys/python/lib/python2.7/site-packages/celery/app/trace.py", line 438, in __protected_call__
return self.run(*args, **kwargs)
File "/opt/paysys/builds/20150907103013/source/jobs/spawn.py", line 238, in loaderDaily
startLoaderViaQueue(jobParams)
File "/opt/paysys/builds/20150907103013/source/jobs/datain/loader.py", line 459, in startViaQueue
start(**job_params)
File "/opt/paysys/builds/20150907103013/source/jobs/datain/loader.py", line 443, in start
startLoader(sess, jobArgs) # , useFileNameForProcessDay=True
File "/opt/paysys/builds/20150907103013/source/jobs/datain/loader.py", line 404, in startLoader
result = endFileProcessingFunc(sess, jobArgs, log, None) # do any final work on the DB
File "/opt/paysys/builds/20150907103013/source/jobs/datain/storage/fixed.py", line 327, in examinerStoreCtrAtts
cot = sess.query(ContribTitle).get(int(cot_gem_id))
File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 840, in get
return loading.load_on_ident(self, key)
File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 231, in load_on_ident
return q.one()
File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2395, in one
ret = list(self)
File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2437, in __iter__
self.session._autoflush()
File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1198, in _autoflush
self.flush()
File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 1919, in flush
self._flush(objects)
File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 2037, in _flush
transaction.rollback(_capture_exception=True)
File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/util/langhelpers.py", line 63, in __exit__
compat.reraise(type_, value, traceback)
File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 2037, in _flush
transaction.rollback(_capture_exception=True)
File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 403, in rollback
transaction._rollback_impl()
File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 434, in _rollback_impl
self._restore_snapshot(dirty_only=self.nested)
File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 288, in _restore_snapshot
s._expire(s.dict, self.session.identity_map._modified)
File "/opt/paysys/python/lib/python2.7/site-packages/sqlalchemy/orm/state.py", line 385, in _expire
if impl.accepts_scalar_loader and \
rec = get_or_create(sess, CtrAtt, ctrAttSearchVals, ctrAttNewVals )
sess.add(rec)
cot = sess.query(ContribTitle).get(int(cot_gem_id))
Hey Mike,I've found and fixed (with help) my problem, but I thought I'd describe it here to support anyone else who hits this...Was not a threading issue......it was a combination of:
- data-edge case
- bug in our code
- bug in how SA was reporting a failure...
I was adding a model object to the session as follows:
rec = get_or_create(sess, CtrAtt, ctrAttSearchVals, ctrAttNewVals )sess.add(rec)