Skip to content

Commit 5719c06

Browse files
committed
process_tracker_python-28 Process Extract Association
🐛 Extract Finder errored on order Enforced FIFO by adding order by extract_id. Closes:#28
1 parent de7841c commit 5719c06

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

process_tracker/process_tracker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def find_ready_extracts_by_location(self, location_name=None, location_path=None
175175
.filter(ExtractStatus.extract_status_name == "ready")
176176
.filter(Location.location_path == location_path)
177177
.order_by(Extract.extract_registration_date_time)
178+
.order_by(Extract.extract_id)
178179
.all()
179180
)
180181
elif location_name is not None:
@@ -185,6 +186,7 @@ def find_ready_extracts_by_location(self, location_name=None, location_path=None
185186
.filter(ExtractStatus.extract_status_name == "ready")
186187
.filter(Location.location_name == location_name)
187188
.order_by(Extract.extract_registration_date_time)
189+
.order_by(Extract.extract_id)
188190
.all()
189191
)
190192
else:

0 commit comments

Comments
 (0)