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(): form.save() logger.info('IGSL pipeline job has been successfully created') else: logger.error('IGSL input parameters form is invalid') return redirect('%s#job-tab' % resolve_url('avi:index'))
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'))