Exemple #1
0
def run_analysis_tm(username=None, data_id=None, ex_id=None):
    '''Run topic modeling learning - passes it off to celery and returns'''
    msgServer.publish(pubsub_name(data_id,ex_id), "%s" % ('Starting analysis'))    
    run_topic_modeling.apply_async([username,data_id,ex_id])
    return Response(status='200')
Exemple #2
0
def set_tm_status(username,fID,ex,st):
    '''set the topic model status and publish it to the menus pubsub'''
    ex.status = st
    msgServer.publish(username + "Xmenus","tmstatus," + str(fID) + "," + st)