Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.7.4, 3.8.1, 3.9
-
Component/s: Tasks
-
Labels:
Description
Currently, there is no sorting in `get_next_adhoc_task()` method:
Therefore, database engine returns unsorted set of records and under some circumstances records with more recent `nextruntime` can go ahead of records with later `nextruntime`.
In scenario when we are catching up with some ad-hoc tasks we want the latest tasks to be processed first.
To guarantee this we should add explicit sorting by `nextruntime`.