Exemple #1
0
def foo_map(article):
    
    
    try:
        time.sleep(0.5)
        ukey_lst = list(set(get_ukeys(article)))
        
        return article,ukey_lst
    except Exception, e:
        print e,"failure in article:"+article
        time.sleep(100)
        return None
Exemple #2
0
def foo_map(article):
    
    
    try:
        
        ukey_lst = list(set(get_ukeys(article)))
        time.sleep(random())
        print "get article",article
        return article,ukey_lst
    except Exception, e:
        print >>log, e,"failure in article:"+article
        time.sleep(100)
        return None