Changeset 373db1 in indico
- Timestamp:
- 03/28/12 16:00:57 (14 months ago)
- Branches:
- master, hello-world-walkthrough, ipv6, v0.98-series, v0.98.2, v0.98.3, v0.99, 051b2622c51afb171a1dedb46a0df4fbb0cbd02e, d9941f8582b36b24821a11ea5ba16fda6a457fb1
- Children:
- 982ded
- Parents:
- 40151f
- Location:
- indico
- Files:
-
- 2 edited
-
MaKaC/common/db.py (modified) (2 diffs)
-
modules/scheduler/daemon_script.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
indico/MaKaC/common/db.py
rde6cee r373db1 75 75 _instance = None 76 76 77 def __init__( self, hostname=None, port=None ):77 def __init__( self, hostname=None, port=None, max_disconnect_poll=30 ): 78 78 import Configuration # Please leave this import here, db.py is imported during installation process 79 79 cfg = Configuration.Config.getInstance() … … 84 84 port = cfg.getDBConnectionParams()[1] 85 85 86 self._storage=ClientStorage((hostname, port), username=cfg.getDBUserName(), password=cfg.getDBPassword(), realm=cfg.getDBRealm()) 86 self._storage=ClientStorage((hostname, port), username=cfg.getDBUserName(), password=cfg.getDBPassword(), realm=cfg.getDBRealm(), 87 max_disconnect_poll=max_disconnect_poll) 87 88 self._db=MaKaCDB(self._storage) 88 89 self._conn = threading.local() -
indico/modules/scheduler/daemon_script.py
r18c3cb r373db1 216 216 root.addHandler(handler) 217 217 218 dbi = DBMgr.getInstance( )218 dbi = DBMgr.getInstance(max_disconnect_poll=40) 219 219 dbi.startRequest() 220 220
Note: See TracChangeset
for help on using the changeset viewer.
