Traceback (most recent call last):

 "/home/frappe/press/benches/0406141318/env/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task
R = retval = fun(*args, **kwargs)

 "/home/frappe/press/benches/0406141318/env/lib/python2.7/site-packages/celery/app/trace.py", line 437, in __protected_call__
return self.run(*args, **kwargs)

 "/home/frappe/press/benches/0406141318/env/lib/python2.7/site-packages/frappe/tasks.py", line 100, in enqueue_events_for_site
enqueue_events(site)

 "/home/frappe/press/benches/0406141318/env/lib/python2.7/site-packages/frappe/utils/scheduler.py", line 34, in enqueue_events
frappe.db.set_global('scheduler_last_event', nowtime.strftime(DATETIME_FORMAT))

 "/home/frappe/press/benches/0406141318/env/lib/python2.7/site-packages/frappe/database.py", line 436, in set_global
self.set_default(key, val, user)

 "/home/frappe/press/benches/0406141318/env/lib/python2.7/site-packages/frappe/database.py", line 443, in set_default
frappe.defaults.set_default(key, val, parent, parenttype)

 "/home/frappe/press/benches/0406141318/env/lib/python2.7/site-packages/frappe/defaults.py", line 79, in set_default
_clear_cache(parent)

 "/home/frappe/press/benches/0406141318/env/lib/python2.7/site-packages/frappe/defaults.py", line 159, in _clear_cache
frappe.clear_cache()

 "/home/frappe/press/benches/0406141318/env/lib/python2.7/site-packages/frappe/__init__.py", line 279, in clear_cache
frappe.sessions.clear_cache()

 "/home/frappe/press/benches/0406141318/env/lib/python2.7/site-packages/frappe/sessions.py", line 60, in clear_cache
clear_notifications()

 "/home/frappe/press/benches/0406141318/env/lib/python2.7/site-packages/frappe/sessions.py", line 39, in clear_notifications
frappe.db.sql("""delete from `tabNotification Count`""")

 "/home/frappe/press/benches/0406141318/env/lib/python2.7/site-packages/frappe/database.py", line 118, in sql
self._cursor.execute(query)

 "/home/frappe/press/benches/0406141318/env/lib/python2.7/site-packages/MySQLdb/cursors.py", line 205, in execute
self.errorhandler(self, exc, value)

 "/home/frappe/press/benches/0406141318/env/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalueOperationalError: (1213, 'Deadlock found when trying to get lock; try restarting transaction')
Traceback (most recent call last):


 "./mycode-rest.py", line 2080, in check_background_threads

event_filter = cevent.createFilter(fromBlock=mycontract_deployblock, toBlock="latest")


 "/mnt/dev/project/rest-backend/venv/lib/python3.7/site-packages/eth_utils/decorators.py", line 20, in _wrapper

return self.method(objtype, *args, **kwargs)


 "/mnt/dev/project/rest-backend/venv/lib/python3.7/site-packages/web3/contract.py", line 1158, in createFilter

log_filter = filter_builder.deploy(self.web3)


 "/mnt/dev/project/rest-backend/venv/lib/python3.7/site-packages/web3/_utils/events.py", line 397, in deploy

for arg in self.args.values():
TypeError: 'DataArgumentFilter' object is not callable
