diff --git a/lib/Tasks/State.php b/lib/Tasks/State.php index 18a2a6a43b..d43d67360e 100644 --- a/lib/Tasks/State.php +++ b/lib/Tasks/State.php @@ -51,6 +51,7 @@ class State $tasks = []; foreach ($statuses as $status) { $query = ScheduledTask::orderByDesc('created_at') + ->orderByAsc('id') // consistent order for tasks with equal timestamps ->whereNull('deleted_at') ->limit($limit); if ($type) {