result = [] try: async with get_sor_context(request._run_ns, 'pipeline') as sor: rows = await sor.sqlExe("select id as plan_id, plan_name as plan_id_text from sd_test_plans order by plan_name", {}) result = list(rows) return json.dumps(result, ensure_ascii=False) except Exception as e: debug(f'dropdown error: {e}') return json.dumps(result, ensure_ascii=False)