r85463 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r85462‎ | r85463 | r85464 >
Date:19:49, 5 April 2011
Author:diederik
Status:deferred
Tags:
Comment:
Added some more debugging info to help fix future problems.
Modified paths:
  • /trunk/tools/editor_trends/etl/enricher.py (modified) (history)

Diff [purge]

Index: trunk/tools/editor_trends/etl/enricher.py
@@ -35,7 +35,6 @@
3636 try:
3737 from database import cassandra
3838 import pycassa
39 -
4039 except ImportError:
4140 pass
4241
@@ -699,6 +698,7 @@
700699 filename = input_queue.get()
701700 input_queue.task_done()
702701 if filename == None:
 702+ print '%s files left in the queue' % input_queue.qsize()
703703 break
704704
705705 fh = file_utils.create_streaming_buffer(filename)
@@ -765,14 +765,13 @@
766766 else:
767767 processors = len(files)
768768
769 - #files = files[0:1]
770 - print rts.input_location, rts.location
771769 for filename in files:
772770 filename = os.path.join(rts.location, filename)
773771 print filename
774772 input_queue.put(filename)
775773
776774 for x in xrange(processors):
 775+ print 'Inserting poison pill %s...' % x
777776 input_queue.put(None)
778777
779778 extracters = [Process(target=stream_raw_xml, args=[input_queue, storage,