mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-10-01 11:52:12 +00:00
fix: airflow ingest get_pipelines_list order_by added (#22909)
* fix: airflow ingest get_pipelines_list order_by added * code reformatted --------- Co-authored-by: Надежда Коцюба <nadezhda.kotsyuba@uni.rest> Co-authored-by: Mayur Singal <39544459+ulixius9@users.noreply.github.com>
This commit is contained in:
parent
b29deea3de
commit
24e5155ffd
@ -371,7 +371,11 @@ class AirflowSource(PipelineServiceSource):
|
||||
offset = 0 # Start
|
||||
|
||||
while True:
|
||||
paginated_query = session_query.limit(limit).offset(offset)
|
||||
paginated_query = (
|
||||
session_query.order_by(SerializedDagModel.dag_id.asc())
|
||||
.limit(limit)
|
||||
.offset(offset)
|
||||
)
|
||||
results = paginated_query.all()
|
||||
if not results:
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user