IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38889


Ignore:
Timestamp:
Oct 20, 2015, 2:07:57 PM (11 years ago)
Author:
eugene
Message:

poll every 2 sec, only output every 5min

File:
1 edited

Legend:

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

    r38884 r38889  
    170170        p = Popen(cmd, shell=True, stdout=dvoStdoutFile, stderr=dvoStderrFile)
    171171
     172        # If I set waitTime to the full value at the beginning, we will always wait a long time for short jobs.
     173
     174        totalWait = 0
    172175        dvopspsRunning = True
    173176        while dvopspsRunning:
    174177            p.poll()
    175178            if p.returncode == None:
    176                 time.sleep(waittime)
     179                time.sleep(2.0)
     180
     181                totalWait += 2.0
     182                if (totalWait < waittime): continue
     183                totalWait = 0.0
    177184
    178185                sql = "show table status where name = '" + myTable + "'"
     
    743750        if (useFW == 1):
    744751            if (self.config.camera == "simtest"):
    745                 print "need photcodes for non gpc1 camera"
     752                # SIMTEST.x.ForcedWarp
     753                cmd += " -photcode-start 15100 -photcode-end 15500"
     754                # print "need photcodes for non gpc1 camera"
    746755            else:
    747756                cmd += " -photcode-start 12000 -photcode-end 12500"
    748         if (useFW == 1):
    749             if (self.config.camera == "simtest"):
    750                 print "need photcodes for non gpc1 camera"
    751             else:
    752                 print "need photcode for warp for gpc1 camera, default is no selection, should work, could be slow"
     757        ## if (useFW == 1):
     758        ##     if (self.config.camera == "simtest"):
     759        ##         print "need photcodes for non gpc1 camera"
     760        ##     else:
     761        ##         print "need photcode for warp for gpc1 camera, default is no selection, should work, could be slow"
    753762               
    754763        ## dvopsps can take a very long time. try 2 or 3 times to re-establish communication with the db before proceeding?
Note: See TracChangeset for help on using the changeset viewer.