Skip to content

Commit

Permalink
Updated waiting routine
Browse files Browse the repository at this point in the history
  • Loading branch information
mcianfrocco committed Dec 4, 2017
1 parent 8384b1a commit 8cc641b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions rosetta/rosetta_waiting.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ def setupParserOptions():
startmin=now.minute

l='%s/rosetta.out' %(params['outdir'])

cmd='echo '' >> %s' %(l)
subprocess.Popen(cmd,shell=True).wait()

Expand Down Expand Up @@ -97,15 +96,10 @@ def setupParserOptions():
isdone=0
os.makedirs('%s/job%03i' %(params['outdir'],counter))
while isdone == 0:
time.sleep(300)
time.sleep(30)
currentTime=datetime.datetime.utcnow()
numtot=subprocess.Popen('ssh -q -n -f -i %s ubuntu@%s "/bin/ls * | wc -l"'%(keypair,instanceIPlist[counter]),shell=True, stdout=subprocess.PIPE).stdout.read().strip()
subprocess.Popen(cmd,shell=True).wait()

cmd='echo "...running...%sUTC >> %s\n' %(currentTime.strftime('%Y-%m-%dT%H:%M:00'),l)
subprocess.Popen(cmd,shell=True).wait()


if float(numtot) > 25:
numPDB=subprocess.Popen('ssh -q -n -f -i %s ubuntu@%s "/bin/ls S*pdb | wc -l"'%(keypair,instanceIPlist[counter]),shell=True, stdout=subprocess.PIPE).stdout.read().strip()
subprocess.Popen(cmd,shell=True).wait()
Expand Down

0 comments on commit 8cc641b

Please sign in to comment.