IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 13, 2016, 3:24:46 PM (10 years ago)
Author:
heather
Message:

fix ipptopsps fits.py to retry uip to 5 times if an smf/cmf is dead

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/fits.py

    r39661 r39694  
    2929       numtries = 0
    3030       success = 0
    31 
     31       time_wait=30
    3232       while (numtries < 5 and success == 0):
    3333           numtries = numtries +1
     
    3737               self.logger.infoPair("success to read file", self.originalPath)
    3838           else:  #if it fails, wait 30 seconds before looping
    39                time.sleep(30)
     39               time.sleep(time_wait)
     40               time_wait= 120 #(first time, wait 30 seconds)
    4041
    4142       if success == 0:
Note: See TracChangeset for help on using the changeset viewer.