From: Diane Trout Date: Wed, 9 Jan 2008 02:29:52 +0000 (+0000) Subject: always trigger a copy when we receive the sequencingFinshed message X-Git-Tag: 0.1.0~13 X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=commitdiff_plain;h=838fccdd58ef58cd36a26019d2f93015ee7fdfa9 always trigger a copy when we receive the sequencingFinshed message hopefully then we'll only send sequencingFinished off to runner when the rsyncing is well and truely finished. --- diff --git a/gaworkflow/copier.py b/gaworkflow/copier.py index c28ea32..2e0d3ae 100644 --- a/gaworkflow/copier.py +++ b/gaworkflow/copier.py @@ -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)