address Bohan's comment
This commit is contained in:
@@ -1784,7 +1784,7 @@ 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())
|
||||
newest_result = Result.objects.filter().order_by('-pk')[0]
|
||||
newest_result = Result.objects.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"
|
||||
|
||||
Reference in New Issue
Block a user