示例#1
0
文件: views.py 项目: ezeakeal/gavita
def run_ulysses(request):
    """
    Starts the Ulysses pipeline

    TODO - minor issue in rendering for invalid forms
    """
    logger.info('request.POST: %s', str(request.POST))

    form = NoisySpectraJobForm(request.POST)
        
    if form.is_valid():
        job_model = form.instance
            
        job_task = manager.create_avi_job_task(request, job_model, 'AnalyseUlyssesOutput')
        # Start the pipeline
        manager.start_avi_job(job_task.job_id)

    return redirect('%s#job-tab' % resolve_url('avi:index'))
示例#2
0
文件: views.py 项目: ezeakeal/gavita
def run_gacsigsl(request):
    """
    Starts the GACS-dev IGSL pipeline
    
    TODO - minor issue in rendering for invalid forms
    """
    logger.info('request.POST: %s', str(request.POST))

    form = GacsIgslAnalysisJobForm(request.POST)
    if form.is_valid():
        job_model = form.instance
            
        job_task = manager.create_avi_job_task(request, job_model, 'AnalyseGacsIgslOutput')
        # Start the pipeline
        manager.start_avi_job(job_task.job_id)
    else:
        logger.error('FORM IS INVALID')

    return redirect('%s#job-tab' % resolve_url('avi:index'))