Esempio n. 1
0
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'))
Esempio n. 2
0
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'))