Upgrade integration tests for testing algorithm performance

This commit is contained in:
yangdsh
2020-05-25 04:58:34 +00:00
committed by Dana Van Aken
parent 4b0d452719
commit 96347e217c
6 changed files with 680 additions and 4 deletions

View File

@@ -1784,10 +1784,12 @@ def alt_create_or_edit_session(request):
@csrf_exempt
def pipeline_data_ready(request): # pylint: disable=unused-argument
LOG.debug("Latest pipeline run: %s", PipelineRun.objects.get_latest())
if PipelineRun.objects.get_latest() is None:
response = "Pipeline data ready: False"
else:
newest_result = Result.objects.filter().order_by('-pk')[0]
pipeline_data = PipelineData.objects.filter(workload=newest_result.workload).order_by('-pk')
if pipeline_data.exists() and pipeline_data[0].pipeline_run.end_time is not None:
response = "Pipeline data ready: True"
else:
response = "Pipeline data ready: False"
return HttpResponse(response)