Ignore:
Timestamp:
07/05/08 15:54:12 (11 years ago)
Author:
cbyrom
Message:

Clear out redundant code and rename main script, oai_document_ingester

  • change references to this accordingly.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/branches/ingestAutomation-upgrade/OAIBatch/run_all_ingest.py

    r3839 r3861  
    33""" 
    44import os, sys, logging 
    5 from oai_ingest_new2 import oai_ingest 
     5from oai_document_ingester import oai_document_ingester 
    66 
    77run_counter = 0 
     8error_counter = 0 
    89 
    910lineSeparator = "-----------------------------" 
     
    1314 
    1415# configure logging 
    15 logging.basicConfig(level=logging.DEBUG, 
     16logging.basicConfig(level=logging.INFO, 
    1617                    format='%(asctime)s %(filename)s:%(lineno)d %(levelname)s %(message)s') 
    1718 
     
    3536            # now invoke the ingest script 
    3637            logging.info("Running the ingest script for datacentre: %s" %datacentre) 
    37             oai_ingest(datacentre) 
    38             run_counter += 1 
     38            try: 
     39                run_counter += 1 
     40                oai_document_ingester(datacentre) 
     41            except: 
     42                error_counter +=1 
    3943                 
    40 print "run_all_ingest.py complete - processed %s config files" %run_counter              
     44print "run_all_ingest.py complete - processed %s config files" %run_counter 
     45if error_counter > 0:            
     46    print "WARNING: %s errors were encountered during the run - check logfiles for more details" %error_counter 
    4147 
    42  
Note: See TracChangeset for help on using the changeset viewer.