[storm] question about disconnects

shawn bright nephish at gmail.com
Mon Mar 10 14:29:55 GMT 2008


Hey there all,

i am using storm ( the newest version) for a gtk GUI application on
Ubuntu 7.10.
I am wondering if there is a timeout for a storm store if it is
inactive for any length of time.

The threads that use storm in this same application run fine, and they
access the database every minute or so, but the GUI part will seem to
error out if left alone for several hours.

I get this error:

Traceback (most recent call last):
  File "admin.py", line 161, in on_group_tree_view_row_activated
    Group.oem == self.get_oem_from_radio()).one()
  File "/usr/lib/python2.5/site-packages/storm-0.12-py2.5.egg/storm/store.py",
line 1029, in one
    result = self._store._connection.execute(select)
  File "/usr/lib/python2.5/site-packages/storm-0.12-py2.5.egg/storm/database.py",
line 193, in execute
    self._ensure_connected()
  File "/usr/lib/python2.5/site-packages/storm-0.12-py2.5.egg/storm/database.py",
line 295, in _ensure_connected
    raise DisconnectionError("Already disconnected")
storm.exceptions.DisconnectionError: Already disconnected

When the GUI first loads, there is one store that it uses for the
whole GUI, then other stores are created, one for each thread that
runs in the background.
the store is created like this
database = create_database(db_connect_string)
self.store = Store(database)

please advise.

thanks,
shawn



More information about the storm mailing list