Ensure train ordering after restart

Ensure lowest timestamps get trained first after restart
This commit is contained in:
Robert Caulk 2022-09-19 11:11:23 +02:00 committed by GitHub
parent f9460c80c2
commit ad652817ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -711,7 +711,7 @@ class IFreqaiModel(ABC):
key=lambda k: k[1]['trained_timestamp'])
for pair in pair_dict_sorted:
if pair[0] in current_pairlist:
best_queue.appendleft(pair[0])
best_queue.appendright(pair[0])
for pair in current_pairlist:
if pair not in best_queue:
best_queue.appendleft(pair)