From 7268ed46c9bce6fea58b55723c325426bdeeb617 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Tue, 17 Mar 2015 10:08:41 +0300 Subject: GWAS multi-core: Tweak queue --- wqflask/wqflask/my_pylmm/pyLMM/gwas.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/my_pylmm/pyLMM/gwas.py b/wqflask/wqflask/my_pylmm/pyLMM/gwas.py index f8d77ab6..2a472717 100644 --- a/wqflask/wqflask/my_pylmm/pyLMM/gwas.py +++ b/wqflask/wqflask/my_pylmm/pyLMM/gwas.py @@ -146,8 +146,8 @@ def gwas(Y,G,K,restricted_max_likelihood=True,refit=False,verbose=True): completed += 1 except Queue.Empty: pass - if job > completed + cpu_num + 5: - time.sleep(1) + if job > completed + cpu_num*2: + time.sleep(0.1) else: if job >= completed: break -- cgit v1.2.3