Changeset 6154


Ignore:
Timestamp:
16/12/09 10:36:43 (10 years ago)
Author:
sdonegan
Message:

all bugs in controller script seem to be fixed...

File:
1 edited

Legend:

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

    r6128 r6154  
    2525 
    2626#create file for summary report on all ingests 
    27 reportingDir = '/home/badc/discovery_docs/ingestDocs/' # base dir where production reporting and output should go 
     27reportingDir = '/home/badc/discovery_docs/ingestDocs/data/' # base dir where production reporting and output should go 
    2828summaryFileName = reportingDir + 'runAllIngestSummary.txt'         
    2929summaryFile = open(summaryFileName,'w')             
     
    5050            try: 
    5151                run_counter += 1 
    52                 #ingester.processDataCentre(datacentre) 
     52                ingester.processDataCentre(datacentre) 
    5353            except: 
    5454                logging.error("Exception thrown - detail: ") 
     
    6969                    if words[0] == 'TOTAL_PROCESSED': 
    7070                        summaryFile.write("Number of processed files: " + words[1] + "\n") 
     71                        summaryFile.write("\n") 
    7172                    if words[0] == 'INGESTED_Created': 
    7273                        summaryFile.write("Number of ingested (created) files: " + words[1] + "\n") 
     74                        summaryFile.write("\n") 
    7375                    if words[0] == 'INGESTED_Updated': 
    7476                        summaryFile.write("Number of ingested (updated) files: " + words[1] + "\n") 
     77                        summaryFile.write("\n") 
    7578                    if words[0] == 'DELETED': 
    7679                        summaryFile.write("Number of deleted files: " + words[1] + "\n") 
     80                        summaryFile.write("\n") 
    7781                    if words[0] == 'PROBLEM_FILES': 
    7882                        summaryFile.write("Number of problem files: " + words[1] + "\n") 
     83                        summaryFile.write("\n") 
    7984                    if words[0] == 'PROBLEM_FILE': 
    8085                        summaryFile.write("Problem file name: " + words[1] + "\n") 
     86                        summaryFile.write("\n") 
    8187 
    8288                    ingest_report_file.close() 
Note: See TracChangeset for help on using the changeset viewer.