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