always trigger a copy when we receive the sequencingFinshed message
authorDiane Trout <diane@caltech.edu>
Wed, 9 Jan 2008 02:29:52 +0000 (02:29 +0000)
committerDiane Trout <diane@caltech.edu>
Wed, 9 Jan 2008 02:29:52 +0000 (02:29 +0000)
hopefully then we'll only send sequencingFinished off to runner
when the rsyncing is well and truely finished.

gaworkflow/copier.py

index c28ea326d0d7d8557e43fa79aa1683d0e25fc4e8..2e0d3ae32ca947c3637cd5f67c012db4a3dd0843 100644 (file)
@@ -184,16 +184,10 @@ class CopierBot(rpc.XmlRpcBot):
         
         # see if we're still copying
         if runfolder_validate(runDir):
-            if runDir in self.rsync.keys():
-                # still copying
-                self.pending.append(runDir)
-                logging.info("finished sequencing, but still copying" % (runDir))
-                return "PENDING"
-            else:
-                # we're done
-                self.reportSequencingFinished(runDir)
-                logging.info("finished sequencing %s" % (runDir))
-                return "DONE"
+            logging.info("recevied sequencing finshed for %s" % (runDir))
+            self.pending.append(runDir)
+            self.startCopy()
+            return "PENDING"
         else:
             errmsg = "received bad runfolder name (%s)" % (runDir)
             logging.warning(errmsg)