Skip to content

Commit 8f62b22

Browse files
authored
Add explicit order by hostname (#42)
1 parent fb40960 commit 8f62b22

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Model/Domain/TaskerPool/TaskerPoolRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function getAvailableHostnames()
7676
}
7777

7878
$query = sprintf(
79-
"SELECT (hostname) FROM %s WHERE status = %s AND ts_available >= %s;",
79+
"SELECT (hostname) FROM %s WHERE status = %s AND ts_available >= %s ORDER BY hostname ASC",
8080
self::TABLE_NAME,
8181
self::ACTIVE,
8282
time() - $this->hostAvailabilityTime

0 commit comments

Comments
 (0)