Author: tack
Date: Sat Apr 22 00:36:05 2006
New Revision: 1442
Modified:
trunk/beacon/src/crawl.py
Log:
If BEACON_EAT_CYCLES envvar is non-zero, index as quickly as possible.
Handy for testing.
Modified: trunk/beacon/src/crawl.py
==============================================================================
--- trunk/beacon/src/crawl.py (original)
+++ trunk/beacon/src/crawl.py Sat Apr 22 00:36:05 2006
@@ -94,6 +94,11 @@
self.restart_args = []
self.last_checked = {}
+ # If this env var is non-zero, initialize the update timer to
+ # 0 so that we do initial indexing as quickly as possible. Mainly
+ # used for debugging/testing.
+ if os.getenv("BEACON_EAT_CYCLES"):
+ self.UPDATE_TIMER = 0
def append(self, item):
"""
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog