Skip to content

Instantly share code, notes, and snippets.

@ruescasd
Created March 1, 2014 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruescasd/9291596 to your computer and use it in GitHub Desktop.
Save ruescasd/9291596 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "build/bdist.linux-x86_64/egg/apscheduler/scheduler.py", line 471, in _run_job
retval = job.func(*job.args, **job.kwargs)
File "build/bdist.linux-x86_64/egg/frestq/api.py", line 48, in call_action_handler
msg = Message.query.get(msg_id)
File "/home/eorchestra/venv/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 816, in get
return loading.load_on_ident(self, key)
File "/home/eorchestra/venv/local/lib/python2.7/site-packages/sqlalchemy/orm/loading.py", line 230, in load_on_ident
return q.one()
File "/home/eorchestra/venv/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2355, in one
ret = list(self)
File "/home/eorchestra/venv/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2398, in __iter__
return self._execute_and_instances(context)
File "/home/eorchestra/venv/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2411, in _execute_and_instances
close_with_result=True)
File "/home/eorchestra/venv/local/lib/python2.7/site-packages/sqlalchemy/orm/query.py", line 2402, in _connection_from_session
**kw)
File "/home/eorchestra/venv/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 843, in connection
close_with_result=close_with_result)
File "/home/eorchestra/venv/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 847, in _connection_for_bind
return self.transaction._connection_for_bind(engine)
File "/home/eorchestra/venv/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 298, in _connection_for_bind
self._assert_active()
File "/home/eorchestra/venv/local/lib/python2.7/site-packages/sqlalchemy/orm/session.py", line 210, in _assert_active
% self._rollback_exception
InvalidRequestError: This Session's transaction has been rolled back due to a previous exception during flush. To begin a new transaction with this Session
, first issue Session.rollback(). Original exception was: (IntegrityError) insert or update on table "task" violates foreign key constraint "task_parent_id
_fkey"
DETAIL: Key (parent_id)=(28d23c81-0fa1-4d6a-a53c-aa2fceeb6d60) is not present in table "task".
'UPDATE task SET parent_id=%(parent_id)s WHERE task.id = %(task_id)s' {'parent_id': '28d23c81-0fa1-4d6a-a53c-aa2fceeb6d60', 'task_id': u'7739d271-f551-4aa
1-bb3a-a5e9f69308b8'}
DEBUG:requests.packages.urllib3.connectionpool:"POST /api/queues/orchestra_director/ HTTP/1.1" 200 0
[pid: 2202|app: 0|req: 10/10] 192.168.50.2 () {44 vars in 2851 bytes} [Sat Mar 1 15:35:49 2014] POST /public_api/election => generated 51 bytes in 90 msec
s (HTTP/1.1 202) 2 headers in 85 bytes (1 switches on core 0)
DEBUG:apscheduler.threadpool:Exiting worker thread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment